From: Ralph Ronnquist Date: Sat, 28 Oct 2023 00:22:20 +0000 (+1100) Subject: Use partition label to find cdrom X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=5da8c1db8a4e690a1e55ce5375d42054b869b735;p=rrq%2Ftiniest.git Use partition label to find cdrom --- diff --git a/init/init b/init/init index b1f25b4..bf114bc 100644 --- a/init/init +++ b/init/init @@ -33,21 +33,7 @@ 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 )