summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2006-12-06 10:13:52 +0100
committerThomas Bächler <thomas@archlinux.org>2006-12-06 10:13:52 +0100
commit02607774d17c89fbe9b77e8bbb379518c502a6cd (patch)
tree1c8d5ecc387a205eedbb9d81a37264a14a09cf48 /init
parente8f8478b128b142262b6f0e3d24b6f9b766f81d3 (diff)
downloadmkinitcpio-02607774d17c89fbe9b77e8bbb379518c502a6cd.tar.gz
mkinitcpio-02607774d17c89fbe9b77e8bbb379518c502a6cd.tar.xz
Trying to address piix issue:
- added -m to print a message before passing control to kinit - added earlymodules= to preload modules git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@187 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'init')
-rw-r--r--init9
1 files changed, 9 insertions, 0 deletions
diff --git a/init b/init
index 20d902e..e9d1866 100644
--- a/init
+++ b/init
@@ -55,6 +55,12 @@ if [ "x${disablemodules}" != "x" ]; then
done
fi
+if [ "x${earlymodules}" != "x" ]; then
+ for m in $(replace "${earlymodules}" ','); do
+ /bin/modprobe -q $m > /dev/null 2>&1
+ done
+fi
+
. /config
for m in $MODULES; do
@@ -94,6 +100,9 @@ if [ "x${udevpid}" != "x" ]; then
fi
msg ":: Initramfs Completed - control passing to kinit"
+if [ -f "/message" ]; then
+ msg "$(cat /message)"
+fi
echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
exec /bin/kinit -- "root=${root}" ${kinit_params} "${runlevel}" > /dev/null 2>&1