Flashing Windows
When the specified ISO file is found to be a Windows ISO, many things are done to work around the quirks with Windows.
The steps are as follows:
- Mount the ISO
- Partition the drive the file is being flashed to
- Format the partitions
- Mount the partitions and copy the files of the ISO with
shutil - Copy the EFI boot files
- Sync the writes to disk and unmount the partitions and ISO