From 18d374f97bf3b4b04429ca9f6727830f15bed00b Mon Sep 17 00:00:00 2001 From: oerg866 Date: Thu, 26 Jan 2023 07:18:19 +0100 Subject: [PATCH] Copy essential files to ram disk before starting the installer. Massive speedup on real machines. Eliminates seeking. --- supplement/findcd.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/supplement/findcd.sh b/supplement/findcd.sh index c2ff114..418a1bf 100644 --- a/supplement/findcd.sh +++ b/supplement/findcd.sh @@ -35,6 +35,13 @@ if [[ -z "$CD" ]] ; then return 127 else echo CD-ROM found and mounted at $CD + # Copy some files to memory for faster execution + cp $CD/bin/lunmercy /bin + cp $CD/bin/cfdisk /bin + cp $CD/bin/lsblk /bin + cp $CD/bin/mkfs.fat /bin + cp $CD/bin/dialog /bin + export CDROM=$CD export PATH=$PATH:$CD/bin return 0