diskimage-builder/diskimage_builder/elements/dracut-regenerate
Mark Goddard aa6c1d01a9 Decode string to bytes in dracut-regenerate
In python3, the standard out data returned by
subprocess.Popen.communicate() will in most cases be bytes rather than a
string and must therefore be decoded.

Without this fix we hit the following error:

TypeError: a bytes-like object is required, not 'str'

Change-Id: I6d75f867ebfdb925970c3397175214b9050d7632
Closes-Bug: #1694463
2017-05-30 16:15:06 +01:00
..
environment.d Add dracut-regenerate elements 2017-05-19 09:43:11 +02:00
finalise.d Decode string to bytes in dracut-regenerate 2017-05-30 16:15:06 +01:00
element-deps Add dracut-regenerate elements 2017-05-19 09:43:11 +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.