9 mount -t proc proc /proc
16 echo -n "initramfs: Creating device nodes: "
17 grep '^ *[0-9]' /proc/partitions | while read major minor blocks dev
19 if [ ! -e /dev/$dev ]; then
21 [ -e /dev/$dev ] || mknod /dev/$dev b $major $minor
28 [ -z "$CMDLINE" ] && CMDLINE=`cat /proc/cmdline`
29 for arg in $CMDLINE; do
30 optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
33 ROOT_DEVICE=$optarg ;;
35 ROOT_FSTYPE=$optarg ;;
43 for module in $MODULE_DIR/$1; do
44 # Cannot redir to $CONSOLE here easily - may not be set yet
45 echo "initramfs: Loading $module module"
52 exec switch_root -c /dev/console $BOOT_ROOT /sbin/init
62 echo "Starting initramfs boot..."
66 [ -z "$CONSOLE" ] && CONSOLE="/dev/console"
70 if [ -z "$rootdelay" ]; then
71 echo "rootdelay parameter was not passed on kernel command line - assuming 2s delay"
72 echo "If you would like to avoid this delay, pass explicit rootdelay=0"
75 if [ -n "$rootdelay" ]; then
76 echo "Waiting $rootdelay seconds for devices to settle..." >$CONSOLE
84 [ -n "$BOOT_ROOT" ] && boot_root
86 fatal "No valid root device was specified. Please add root=/dev/something to the kernel command-line and try again."