summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init3
1 files changed, 3 insertions, 0 deletions
diff --git a/init b/init
index fe42234..7cf4943 100644
--- a/init
+++ b/init
@@ -13,6 +13,8 @@ export CMDLINE
# Used so hooks can override params to kinit
export kinit_params=""
+read OLDMODPROBE </proc/sys/kernel/modprobe
+echo "/bin/modprobe" > /proc/sys/kernel/modprobe
for cmd in $CMDLINE; do
case "$cmd" in
@@ -77,4 +79,5 @@ fi
# Optimize fs type loop for mounting rootfs
msg ":: Initramfs Completed - control passing to kinit"
+echo "${OLDMODPROBE}" > /proc/sys/kernel/modprobe
exec /bin/kinit "root=${root}" ${kinit_params} < /dev/console > /dev/console