diff options
author | Thomas Bächler <thomas@archlinux.org> | 2006-12-06 10:13:52 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2006-12-06 10:13:52 +0100 |
commit | 02607774d17c89fbe9b77e8bbb379518c502a6cd (patch) | |
tree | 1c8d5ecc387a205eedbb9d81a37264a14a09cf48 /init | |
parent | e8f8478b128b142262b6f0e3d24b6f9b766f81d3 (diff) | |
download | mkinitcpio-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-- | init | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |