Skip to content

Commit

Permalink
Copy essential files to ram disk before starting the installer.
Browse files Browse the repository at this point in the history
Massive speedup on real machines. Eliminates seeking.
  • Loading branch information
oerg866 committed Jan 26, 2023
1 parent 6e57699 commit 18d374f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions supplement/findcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18d374f

Please sign in to comment.