Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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