]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut-functions.sh): check_kernel_module should follow dracutsysrootdir
authorKairui Song <kasong@tencent.com>
Tue, 6 Dec 2022 09:20:26 +0000 (17:20 +0800)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Wed, 21 Dec 2022 16:07:46 +0000 (17:07 +0100)
commit6c42d378abe528ee6f10c8272080eec5f3f44acb
tree196fccaa29b35bbbaea322c1b3aec2f6f30fbb46
parentf66a02e5a94a48bedf6c33b1afab0d588724b1ee
fix(dracut-functions.sh): check_kernel_module should follow dracutsysrootdir

check_kernel_module calls modprobe and tries to dry-run a module load to
check if a module is available. modprobe supports `-d` to specify a
rootdir, so just pass dracutsysrootdir to it to make it work as expected
when building initramfs for another rootfs.

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