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"
20 # prepare the device. This uses tmpfs to avoid dependency
21 # on non-built-in file systems and because tmpfs can expand
22 # to bigger than the 10MByte ram0 partition used before.
23 # The 'device' is currently unused.
24 if mount -t tmpfs "$@" tmpfs /mnt
27 # filter out boot (with zimage), linuxrc and anything
28 # below /var, keep dev or the boot will fail (note that
29 # nothing is mounted this early in the bootstrap).
30 find . -mount -print |
31 sed '\@^./boot/@d;\@^./boot$@d;\@^./linuxrc@d;\@^./var/@d' |
33 # checkmount checks for sh, init and no .recovery plus
34 # either mnt or initrd, mnt must exist!
42 # Failure: unmount the partition.
46 # fallback - use the flash boot