Update define.sh

This commit is contained in:
Kroese 2024-05-02 01:30:56 +02:00 committed by GitHub
parent 2d78c763d1
commit bacd4eae07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -687,10 +687,9 @@ prepareXP() {
local dir="$2" local dir="$2"
MACHINE="pc-q35-2.10" MACHINE="pc-q35-2.10"
BOOT_MODE="windows_legacy"
ETFS="[BOOT]/Boot-NoEmul.img" ETFS="[BOOT]/Boot-NoEmul.img"
[[ "$MANUAL" == [Yy1]* ]] && return 0 [[ "$MANUAL" == [Yy1]* ]] && return 0
configXP "$dir" && return 0 configXP "$dir" && return 0
error "Failed to generate XP configuration files!" && exit 66 error "Failed to generate XP configuration files!" && exit 66
@ -702,8 +701,6 @@ prepareLegacy() {
local dir="$2" local dir="$2"
ETFS="boot.img" ETFS="boot.img"
BOOT_MODE="windows_legacy"
rm -f "$dir/$ETFS" rm -f "$dir/$ETFS"
local len offset local len offset