Chandan Kumar (raukadah) eeb4d901a7 Enable dracut list installed modules
While looking at DIB logs, it is very hard to debug dracut
issues due to missing modules, listing dracut modules will
give an insight.

Related-Bug: #1907457

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I4d277bdfd648adba5a749d22d905c66b807e249a
2020-12-28 14:24:20 +00:00
..
2017-05-19 09:43:11 +02:00
2020-08-24 10:21:35 -05: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.

Also adds the ability to copy specific files into /etc/dracut.conf.d directory to allow any dracut settings to be configured. To achieve that the files to be copied need to be placed inside an specific dracut.d directory of the element.