3 # This script is intended to be interpreted by busybox sh.
8 mkdir /cdrom /target /mnt
10 for M in proc:/proc devtmpfs:/dev devpts:/dev/pts sysfs:/sys ; do
12 mount -t ${M%%:*} ${M%%:*} ${M##*:}
15 modprobe loop max_part=15
16 cat <<EOF | xargs -n1 modprobe
17 ata_piix sd_mod sr_mod isofs vfat xhci-pci usb_storage exfat ext4
20 # cdrom t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_common libata
21 # scsi_mod scsi_common
23 # ata_generic nls_cp437 nls_ascii sg
24 # ext4 jbd2 mbcache crc16
35 exec setsid cttyhack sh -i
36 ###################################
38 if mount LABEL=TINNIE /target ; then
39 exec setsid cttyhack sh -i
40 exec switch_root -c /dev/console /target /init
43 mount LABEL=TINIEST /cdrom
44 mount -t ramfs -o size=1G initrd /target
46 gunzip < $(find /cdrom -name initrd.gz ) | ( cd /target && cpio -i )
47 exec setsid cttyhack sh -i
48 ###################################
50 exec switch_root -c /dev/console /target /init