2 # boot from the hard disk partition "$1" (which
3 # must be given) using options from the rest of
6 # Use the standard init path (see /etc/init.d/rcS)
7 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
9 # Load the helper functions
10 . /etc/default/functions
11 . /etc/default/modulefunctions
18 # proc is needed for UUID mount and module load
19 mount -t proc proc /proc
20 # load USB & SCSI storage modules (/proc required!)
21 if [ "$(machine)" != "storcenter" ]; then
22 echo "boot: loading modules required for disk boot"
24 # waiting for disk (FIXME)
26 test "$sleep" -gt 0 && sleep "$sleep"
28 # make the device links so turnup can use short disk names.
29 # probably only necessary on devfs based systems.
30 /etc/init.d/devices start
31 scc -l redflash -f auto
35 echo "boot: rootfs: mount $* $device [$UUID]"
37 # Mount read-write because before exec'ing init
38 # If a UUID is given (in the environment) this
39 # is used in preference to the device, but if
40 # the UUID mount fails a standard device mount
43 mount "$@" -U "$UUID" /mnt ||
44 mount "$@" "$device" /mnt
46 # checkmount checks for sh, chroot, init
47 # and /mnt (i.e. /mnt/mnt in this case)
50 # if mounted, then move /dev to the new root
51 mount --bind /dev /mnt/dev
52 # pivot to /initrd if available, else /mnt
54 if test -d /mnt/initrd
62 # Failure: unmount the partition
66 # fallback - use the flash boot