X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=init%2Finit;h=bf114bcd87918ac4ad52c4b83c8d6c6c9ecd0a14;hb=5da8c1db8a4e690a1e55ce5375d42054b869b735;hp=23b40ac0de3d5d4f55a879066c85697a7d9b984a;hpb=284ca4491a1818ef8438bf28ac2bee8255243598;p=rrq%2Ftiniest.git diff --git a/init/init b/init/init index 23b40ac..bf114bc 100644 --- a/init/init +++ b/init/init @@ -33,23 +33,9 @@ echo echo "Continuing..." echo -# Determine root fs from FSUUID provided by syslinux SYSAPPEND -for I in 1 2 3 4 5 ; do - sleep $I - mount UUID=${FSUUID} /boot && break - if [ $I -eq 5 ] ; then - echo "CANNOT MOUNT UUID=${FSUUID}" - echo "Starting emergency shell ..." - exec /bin/sh - fi -done -DEV2="$(grep /boot /proc/mounts | sed 's/ .*//')" -umount /boot -DEV="${DEV2%?}" - -mount $DEV /cdrom +mount LABEL=TINIEST /cdrom mount -t ramfs -o size=1G initrd /target gunzip < $(find /cdrom -name initrd.gz ) | ( cd /target && cpio -i ) -#exec /bin/sh +exec /bin/sh exec switch_root -c /dev/console /target /init