3 # This script is intended to be interpreted by busybox sh.
11 for M in proc:/proc devtmpfs:/dev devpts:/dev/pts sysfs:/sys ; do
13 mount -t ${M%%:*} ${M%%:*} ${M##*:}
16 for M in ata_piix sd_mod sr_mod isofs vfat xhci-pci usb_storage ; do
22 # cdrom t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_common libata
23 # scsi_mod scsi_common
25 # ata_generic nls_cp437 nls_ascii sg
26 # ext4 jbd2 mbcache crc16
36 # Determine root fs from FSUUID provided by syslinux SYSAPPEND
37 for I in 1 2 3 4 5 ; do
39 mount UUID=${FSUUID} /boot && break
40 if [ $I -eq 5 ] ; then
41 echo "CANNOT MOUNT UUID=${FSUUID}"
42 echo "Starting emergency shell ..."
46 DEV2="$(grep /boot /proc/mounts | sed 's/ .*//')"
51 mount -t ramfs -o size=1G initrd /target
53 gunzip < $(find /cdrom -name initrd.gz ) | ( cd /target && cpio -i )
55 exec switch_root -c /dev/console /target /init