From 9de30530fce665c5c063144213ca7321fa5c43ec Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 4 Feb 2024 18:04:55 +0100 Subject: [PATCH] fix: OVMF rom and variables --- src/boot.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/boot.sh b/src/boot.sh index 8b983c6e..ba7352f6 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -41,14 +41,12 @@ if [[ "${BOOT_MODE,,}" != "legacy" ]] && [[ "${BOOT_MODE,,}" != "windows_legacy" if [ ! -f "$DEST.rom" ]; then [ ! -f "$OVMF/$ROM" ] && error "UEFI boot file ($OVMF/$ROM) not found!" && exit 44 - dd if=/dev/zero "of=$DEST.rom" bs=1M count=4 status=none - dd "if=$OVMF/$ROM" "of=$DEST.rom" conv=notrunc status=none + cp "$OVMF/$ROM" "$DEST.rom" fi if [ ! -f "$DEST.vars" ]; then [ ! -f "$OVMF/$VARS" ] && error "UEFI vars file ($OVMF/$VARS) not found!" && exit 45 - dd if=/dev/zero "of=$DEST.vars" bs=1M count=4 status=none - dd "if=$OVMF/$VARS" "of=$DEST.vars" conv=notrunc status=none + cp "$OVMF/$VARS" "$DEST.vars" fi if [[ "${BOOT_MODE,,}" != "uefi" ]]; then