]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut.sh: record the actual hostonly modules for hostonly mode
authorKairui Song <kasong@redhat.com>
Tue, 7 May 2019 11:15:42 +0000 (19:15 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 13:38:13 +0000 (15:38 +0200)
commita0d9ad6f700b1f04bb9f3ac937d0b586a7881230
treea3215f56e52d980753d0cc3d09e5b4b294295a77
parent90ac0a2d772ec0d4f90ea16fc5a31be10bdf205e
dracut.sh: record the actual hostonly modules for hostonly mode

Previous in commit 7047294, dracut will include the loaded kernel module
list in initramfs, so other tools could check if the loaded kernel
module is changed and rebuild the host only initramfs in case some
module required to boot the machine is missing due to host only install.

It's better to use modalias list generated by dracut-install, that
list includes the device modalias list combined with current loaded
kernel module list. In this way, if any kernel module is yet to be
loaded when the initramfs is built, or got unloaded by accident the
module list will not change. This make the list more stable over
initramfs builds.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut-functions.sh
dracut.sh