fix: Undefined boot mode (#342)
This commit is contained in:
parent
53a38d9373
commit
ced9942db6
1 changed files with 0 additions and 16 deletions
|
@ -12,22 +12,6 @@ else
|
|||
PROGRESS="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
|
||||
|
||||
DEST="$STORAGE/drivers.img"
|
||||
|
||||
if [ ! -f "$DEST" ]; then
|
||||
|
||||
info "Downloading VirtIO drivers for Windows..."
|
||||
DRIVERS="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso"
|
||||
|
||||
{ wget "$DRIVERS" -O "$DEST" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || :
|
||||
|
||||
(( rc != 0 )) && info "Failed to download $DRIVERS, reason: $rc" && rm -f "$DEST"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
BASE="boot.img"
|
||||
[ -f "$STORAGE/$BASE" ] && return 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue