/bin/true is 23kb, bigger than rmmod itself!
And a module-less initramfs runs just fine without rmmod and modprobe.
---
modules.d/99base/install | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
I'm also not clear on why --ignore-kernel-modules exists as a separate
argument; I would think that the functionality of --ignore-kernel-modules
falls nicely into the scope of --no-kernel
diff --git a/modules.d/99base/install b/modules.d/99base/install
index 6fac851..1655eb2 100755
--- a/modules.d/99base/install
+++ b/modules.d/99base/install
@@ -3,11 +3,7 @@
dracut_install mount mknod mkdir pidof sleep chroot sed ls flock cp mv dmesg \
rm ln mkfifo less
-if [[ ${ignore_kmodules} = yes ]]; then
- inst /bin/true
- ln -s /bin/true "${initdir}"/sbin/modprobe
- ln -s /bin/true "${initdir}"/sbin/rmmod
-else
+if [[ ${ignore_kmodules} != yes ]]; then
dracut_install modprobe rmmod
fi
if [ ! -e "${initdir}/bin/sh" ]; then
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html