Skip to content

Add support for directories as sources and loop devices as targets#43

Open
joergsteffens wants to merge 1 commit intoWoeUSB:masterfrom
joergsteffens:master
Open

Add support for directories as sources and loop devices as targets#43
joergsteffens wants to merge 1 commit intoWoeUSB:masterfrom
joergsteffens:master

Conversation

@joergsteffens
Copy link

@joergsteffens joergsteffens commented Mar 21, 2021

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

@joergsteffens joergsteffens changed the title Add support forirectories as sources and loop devices as targets Add support for directories as sources and loop devices as targets Mar 21, 2021
@joergsteffens joergsteffens force-pushed the master branch 2 times, most recently from f5da528 to c896aa6 Compare March 22, 2021 08:36
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
@joergsteffens
Copy link
Author

Updated by force-push to cope the warnings issued by drone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant