fix: Hide long mode from 32-bit Windows guests (#2178)

This commit is contained in:
Kroese
2026-08-22 00:07:19 +02:00
committed by GitHub
parent afa55b476c
commit 2fe4645685
4 changed files with 73 additions and 54 deletions
+5 -7
View File
@@ -356,12 +356,9 @@ getImageSize() {
getArchiveSize() {
local file="$1"
local result_name="$2"
local -n result="$result_name"
local found=0 listing line value rc
result=0
local found=0 result=0
local listing line value rc
listing=$(7z l -slt "$file" 2>/dev/null) || {
rc=$?
@@ -386,6 +383,7 @@ getArchiveSize() {
return 1
fi
printf '%s\n' "$result"
return 0
}
@@ -437,7 +435,7 @@ extractImage() {
return 1
fi
getArchiveSize "$iso" archiveSize || return
archiveSize=$(getArchiveSize "$iso") || return
required=$((archiveSize + (archiveSize + 99) / 100))
checkFreeSpace "$target" "$required" || return 1
@@ -554,7 +552,7 @@ getPlatform() {
local xml="$1"
local arch current platform=""
local arch count current platform=""
local image_count output records
local separator=$'\x1f'