summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-07 00:20:51 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-07 00:20:51 +0200
commit212033832a355b6ca1ad61f0f0460cf7b9b07c2d (patch)
treedf67b52c54b34bbe10841db3e2931cd751138d27 /init
parentdfa96bef3516723c144dbb61a9b13f728e678c7c (diff)
downloadmkinitcpio-212033832a355b6ca1ad61f0f0460cf7b9b07c2d.tar.gz
mkinitcpio-212033832a355b6ca1ad61f0f0460cf7b9b07c2d.tar.xz
Switched kernel-known modprobe, for init-based autoloading
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@76 880c04e9-e011-0410-abf7-b926e227c9cd
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