projects
/
rrq
/
tiniest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44364c0
)
Use partition label to find cdrom
author
Ralph Ronnquist
<rrq@rrq.au>
Sat, 28 Oct 2023 00:22:20 +0000
(11:22 +1100)
committer
Ralph Ronnquist
<rrq@rrq.au>
Sat, 28 Oct 2023 00:22:20 +0000
(11:22 +1100)
init/init
patch
|
blob
|
history
diff --git
a/init/init
b/init/init
index b1f25b4aadcdb8e1ce529e096b37e9afba5f4be3..bf114bcd87918ac4ad52c4b83c8d6c6c9ecd0a14 100644
(file)
--- a/
init/init
+++ b/
init/init
@@
-33,21
+33,7
@@
echo
echo "Continuing..."
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 )
mount -t ramfs -o size=1G initrd /target
gunzip < $(find /cdrom -name initrd.gz ) | ( cd /target && cpio -i )