From 5da8c1db8a4e690a1e55ce5375d42054b869b735 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 28 Oct 2023 11:22:20 +1100 Subject: [PATCH] Use partition label to find cdrom --- init/init | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 ) -- 2.39.2