Code: Select all
# mount --mkdir ~/Downloads/win-installer.iso /mnt/iso/win-installer # I use windows server 2025.
# mount --mkdir ~/Downloads/winvos.iso /mnt/iso/winvos # Windows ValidationOS.
# mkwinpeimg --windows-dir=/mnt/iso/win-installer --arch=amd64 --overlay=/mnt/iso/winvos --wim=/mnt/iso/winvos/ValidationOS.wim ./winvos.img
:: Copying primary boot files from mounted Windows ISO (/mnt/iso/win-installer) [DONE]
:: Copying /mnt/iso/winvos/ValidationOS.wim to temporary directory [DONE]
:: Overlaying "/mnt/iso/winvos" on the Windows PE filesystem [DONE]
:: Rebuilding WIM with changes made [BUSY]
ERROR: "/tmp/tmp.U67iRIGE3g/sources/boot.wim" contains 2 images; Please select one.
Usage:
wimlib-imagex update WIMFILE [IMAGE]
[--check] [--rebuild] [--threads=NUM_THREADS]
[DEFAULT_ADD_OPTIONS] [DEFAULT_DELETE_OPTIONS]
[--command=STRING] [--wimboot-config=FILE]
[< CMDFILE]
Some uncommon options are not listed; see `man wimupdate' for more details.