Skip to content

Commit

Permalink
feat: Local drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 15, 2024
1 parent a42330a commit 336ae85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ set -Eeuo pipefail
: "${DISK_ROTATION:="1"}" # Rotation rate, set to 1 for SSD storage and increase for HDD

BOOT="$STORAGE/$BASE"
DRIVERS="$STORAGE/drivers.img"
DISK_OPTS="-object iothread,id=io2"

if [ -f "$BOOT" ]; then
Expand All @@ -21,6 +20,9 @@ if [ -f "$BOOT" ]; then
-device scsi-cd,bus=scsi0.0,drive=cdrom0,bootindex=10"
fi

DRIVERS="$STORAGE/drivers.img"
[ ! -f "$DRIVERS" ] && DRIVERS="/run/drivers.iso"

if [ -f "$DRIVERS" ]; then
DISK_OPTS="$DISK_OPTS \
-drive id=cdrom1,if=none,format=raw,readonly=on,file=$DRIVERS \
Expand Down

0 comments on commit 336ae85

Please sign in to comment.