diff options
author | Sergey Lapin <slapinid@gmail.com> | 2008-03-03 11:19:39 +0000 |
---|---|---|
committer | Sergey Lapin <slapinid@gmail.com> | 2008-03-03 11:19:39 +0000 |
commit | 07c0de10dddece15b5a88e76ec94a9abc985b9cd (patch) | |
tree | 340de59696786aaa35070e7615700bf0bb491833 /packages/initrdscripts/files/init.sh | |
parent | fd03b5166557844135feef144c2d78470f71f7e6 (diff) | |
parent | 34c6339ee471446c0231675f9fc83d4a419d53c3 (diff) |
merge of '6bfc098b36170550230dc57120c75b31480dc6b3'
and 'abcca41fb7edac5318b0cb0266d5f0c167f87c2f'
Diffstat (limited to 'packages/initrdscripts/files/init.sh')
-rw-r--r-- | packages/initrdscripts/files/init.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh index f8d5de9173..8b9fe12429 100644 --- a/packages/initrdscripts/files/init.sh +++ b/packages/initrdscripts/files/init.sh @@ -8,6 +8,7 @@ early_setup() { mkdir /proc mount -t proc proc /proc mkdir /mnt + modprobe -q mtdblock } dev_setup() @@ -30,6 +31,8 @@ read_args() { case $arg in root=*) ROOT_DEVICE=$optarg ;; + rootfstype=*) + ROOT_FSTYPE=$optarg ;; rootdelay=*) rootdelay=$optarg ;; esac @@ -48,13 +51,13 @@ boot_root() { exec switch_root -c /dev/console $BOOT_ROOT /sbin/init } -boot_failed() { - echo "No valid root device was specified. Please add root=/dev/something to" - echo "the kernel command-line and try again." +fatal() { + echo $1 echo exec sh } + echo "Starting initramfs boot..." early_setup read_args @@ -68,4 +71,5 @@ dev_setup load_modules [ -n "$BOOT_ROOT" ] && boot_root -boot_failed + +fatal "No valid root device was specified. Please add root=/dev/something to the kernel command-line and try again." |