feat: Local drivers (#335)
This commit is contained in:
parent
a42330a2f3
commit
e02aa4385b
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,6 @@ set -Eeuo pipefail
|
||||||
: "${DISK_ROTATION:="1"}" # Rotation rate, set to 1 for SSD storage and increase for HDD
|
: "${DISK_ROTATION:="1"}" # Rotation rate, set to 1 for SSD storage and increase for HDD
|
||||||
|
|
||||||
BOOT="$STORAGE/$BASE"
|
BOOT="$STORAGE/$BASE"
|
||||||
DRIVERS="$STORAGE/drivers.img"
|
|
||||||
DISK_OPTS="-object iothread,id=io2"
|
DISK_OPTS="-object iothread,id=io2"
|
||||||
|
|
||||||
if [ -f "$BOOT" ]; then
|
if [ -f "$BOOT" ]; then
|
||||||
|
@ -21,6 +20,9 @@ if [ -f "$BOOT" ]; then
|
||||||
-device scsi-cd,bus=scsi0.0,drive=cdrom0,bootindex=10"
|
-device scsi-cd,bus=scsi0.0,drive=cdrom0,bootindex=10"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DRIVERS="$STORAGE/drivers.img"
|
||||||
|
[ ! -f "$DRIVERS" ] && DRIVERS="/run/drivers.iso"
|
||||||
|
|
||||||
if [ -f "$DRIVERS" ]; then
|
if [ -f "$DRIVERS" ]; then
|
||||||
DISK_OPTS="$DISK_OPTS \
|
DISK_OPTS="$DISK_OPTS \
|
||||||
-drive id=cdrom1,if=none,format=raw,readonly=on,file=$DRIVERS \
|
-drive id=cdrom1,if=none,format=raw,readonly=on,file=$DRIVERS \
|
||||||
|
|
Loading…
Reference in a new issue