mirror of
https://github.com/dockur/windows.git
synced 2026-08-06 05:57:20 +01:00
feat: Add Windows NT 4 support (#2049)
This commit is contained in:
+8
-8
@@ -1753,13 +1753,6 @@ buildImage() {
|
||||
error "Failed to locate file \"$ETFS\" in ISO image!" && return 1
|
||||
fi
|
||||
|
||||
if [[ "${BOOT_MODE,,}" == "windows_legacy" &&
|
||||
"${DETECTED,,}" != "win9"* &&
|
||||
-z "${BOOT_LOAD_SIZE:-}" ]]; then
|
||||
error "Failed to determine the boot image load size!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! size=$(du -b --max-depth=0 "$dir" | cut -f1); then
|
||||
error "Failed to calculate the size of directory \"$dir\"!"
|
||||
return 1
|
||||
@@ -1767,6 +1760,13 @@ buildImage() {
|
||||
|
||||
checkFreeSpace "$TMP" "$size" || return 1
|
||||
|
||||
if [[ "${BOOT_MODE,,}" == "windows_legacy" ]] && [ -z "${BOOT_LOAD_SIZE:-}" ]; then
|
||||
if [[ "${DETECTED,,}" != "win9"* && "${DETECTED,,}" != "winnt4" ]]; then
|
||||
error "Failed to determine the boot image load size!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
/run/progress.sh "$out" "$size" "$msg ([P])..." &
|
||||
|
||||
local -a args=(
|
||||
@@ -1816,7 +1816,7 @@ buildImage() {
|
||||
"${name_args[@]}"
|
||||
) ;;
|
||||
|
||||
"win9"* )
|
||||
"win9"* | "winnt4" )
|
||||
|
||||
args+=(
|
||||
-J
|
||||
|
||||
Reference in New Issue
Block a user