diskimage-builder/diskimage_builder/elements/dracut-regenerate
Ian Wienand bac8b4246e dracut-regenerate: catch failures and exit code
This seems to miss the exit code of the dracut process, which actualy
caused some issues in I8511669e188717494daf2bc1384a6dd346f942a4 where
it would have been much clearer to stop after the initramfs generation
failed.

Add some debug messages, and catch any errors from the final call.

Change-Id: I6f89441ec4709f5199535e15a7cc53a3a8af273d
2019-08-13 15:51:05 +10:00
..
environment.d Add dracut-regenerate elements 2017-05-19 09:43:11 +02:00
finalise.d dracut-regenerate: catch failures and exit code 2019-08-13 15:51:05 +10:00
element-deps Add dracut-regenerate elements 2017-05-19 09:43:11 +02:00
package-installs.yaml Add missing package dependency for yaml 2017-09-13 14:16:41 +02:00
pkg-map Add missing package dependency for yaml 2017-09-13 14:16:41 +02:00
README.rst Add dracut-regenerate elements 2017-05-19 09:43:11 +02:00

=================
dracut-regenerate
=================
Adds the possibility of regenerating dracut on image build time, giving the
possibility to load extra modules.
It relies on the ``DIB_DRACUT_ENABLED_MODULES`` setting, that will accept
a yaml blob with the following format::

  - name: <module1>
    packages:
      - <package1>
      - <package2>
  - name: <module2>
    packages:
      - <package3>
      - <package4>

By default, this element will bring lvm and crypt modules.