Last active
July 11, 2021 18:57
-
-
Save nathanjackson/472a2d54cf6a68f28a27312107133cf7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install wimlib | |
dnf install wimlib-utils wimlib | |
# Mount Windows 10 ISO | |
mkdir /tmp/winiso | |
mount <path to windows 10 iso> /tmp/winiso | |
# Create Split WIM files | |
wimsplit /tmp/winiso/sources/install.wim install.swm 2048 | |
# Partition USB | |
# TODO (but we need to create a GPT disk with 1 fat32 partition) | |
# Copy ISO contents to the USB disk | |
rsync --progress -tvhr --exclude 'install.wim' /tmp/winiso/* /mnt/ | |
# Copy Split WIM files | |
cp -v install*.swm /mnt/sources/ | |
# Unmount | |
umount /dev/<disk node> | |
# Test the USB in QEMU | |
qemu-system-x86_64 -enable-kvm -m 2048 -smp 2 -bios /usr/share/edk2/ovmf/OVMF_CODE.fd -hda /dev/<disk node> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment