Drop .install from the Windows install disk image name

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-10-19 09:28:54 +08:00
1 parent 2aae652569
commit dd29fd92a7
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ sudo apt install wimtools dosfstools gdisk mtools p7zip-full
./build-windows-install-disk.sh [--force] install-iso/Windows11_..._arm64_....iso ./build-windows-install-disk.sh [--force] install-iso/Windows11_..._arm64_....iso
``` ```
The output defaults to the ISO path with `.install.img` in place of `.iso`. The The output defaults to the ISO path with `.img` in place of `.iso`. The
image is built without root. The ISO has to be read as UDF (its ISO 9660 side only image is built without root. The ISO has to be read as UDF (its ISO 9660 side only
holds a README): macOS uses `hdiutil`, Linux uses `mount -t udf` as root, holds a README): macOS uses `hdiutil`, Linux uses `mount -t udf` as root,
otherwise `udisksctl`, otherwise `7z` extracts it into a temporary directory otherwise `udisksctl`, otherwise `7z` extracts it into a temporary directory
+2 -2
View File
@@ -18,7 +18,7 @@
# Debian wimtools dosfstools gdisk mtools udisks2 # Debian wimtools dosfstools gdisk mtools udisks2
# #
# Usage: build-windows-install-disk.sh [--force] ISO [OUTPUT.img] # Usage: build-windows-install-disk.sh [--force] ISO [OUTPUT.img]
# OUTPUT defaults to the ISO path with ".install.img" in place of ".iso". # OUTPUT defaults to the ISO path with ".img" in place of ".iso".
set -euo pipefail set -euo pipefail
usage() { usage() {
@@ -39,7 +39,7 @@ if ((${#args[@]} < 1 || ${#args[@]} > 2)); then
exit 2 exit 2
fi fi
iso="${args[0]}" iso="${args[0]}"
output="${args[1]:-${iso%.*}.install.img}" output="${args[1]:-${iso%.*}.img}"
die() { die() {
printf 'Error: %s\n' "$1" >&2 printf 'Error: %s\n' "$1" >&2