2 # boot from the hard disk partition "$1" (which
3 # must be given) using options from the rest of
8 # Use the standard init path (see /etc/init.d/rcS)
9 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
11 # Load the helper functions
12 . /etc/default/functions
18 echo "boot: rootfs: mount $* $device"
21 test "$sleep" -gt 0 && sleep "$sleep"
23 # Mount read-write because before exec'ing init
24 # this script creates the '.recovery' link to
25 # detect failed boot. No file type is given to
26 if mount "$@" "$device" /mnt
28 # checkmount checks for sh, init and no
29 # .recovery plus either mnt or initrd
30 if checkmount /mnt && :>/mnt/.recovery
32 # sync to ensure .recovery is written
34 # pivot to /initrd if available, else /mnt
36 if test -d /mnt/initrd
44 # Failure: unmount the partition
48 # fallback - use the flash boot