-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for directories as sources and loop devices as targets
Added support for source directories. This allows to modify the Windows install files. Before only ISO images and devices have been supported. Added support for loop devices as target. Before woeusb assumed specific naming of the device files. That a device does not end with a number and that a partition device has only a number attached. However, loop files normally end with a number (/dev/loop42) and partititons are named p1 (/dev/loop42p1), ... This change uses lsblk instead, to retrieve information about partitions. Example usage: # create sparse file truncate sparse.img -s 10G sudo losetup -f sparse.img TARGET_DEV=$(losetup -j sparse.img --output NAME --noheadings) sudo woeusb -v --device /tmp/DirectoryWithCopiedAndModifiedWindowsIsoFiles/ $TARGET_DEV --tgt-fs ntfs
- Loading branch information
1 parent
69af694
commit 35dda62
Showing
1 changed file
with
69 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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