Drop .install from the Windows install disk image name
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2aae652569
commit
dd29fd92a7
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user