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

Request for a --file/--iso option, to write the result to a file/iso instead of only partition/device. Basically to convert the original UEFI iso to a Legacy type img/iso #47

Open
1 of 2 tasks
systemofapwne opened this issue Aug 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@systemofapwne
Copy link

Good Habit Checklist for Issue Reporting

Checkout Mastering Markdown · GitHub Guides if you needs help on the GitHub-flavored Markdown syntax. You may remove sections and contents that don't apply.

  • I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed
  • I've built the latest development snapshot using the instructions in README and verified that the issue can still be reproduced (for bug reports)

Issue Reproduce Instructions

Right now, creating an IMG or ISO file (in legacy mode) from a provided ISO is no supported via this tool directly. However, there is a workaround via a loopback device.
But that approach is ugly and needs a lot of workarounds

# Create a sparse-file of sufficient size
truncate install.img -s 6G
# Create a loopback device from that sparse-file
sudo losetup -fP install.img
# Create symlinks, so the internal "sanity check" of WoeUSB does not error out.
# The reason is, that WoeUSB recognizes "numbers" at the end of a supplied target as partition. However /dev/loop0 is a device. And if we set the --device option, WoeUSB recognizes the target as a partition and aborts
# Furthermore, WoeUSB assumes the partions following the pattern <the_device><partition_numbe>, while for a device with already a number at its end, the convention is <device>p<partition_number>
# So we create some symlinks to fool WoeUSB
sudo ln -s /dev/loop0 /dev/lb
sudo ln -s /dev/loop0p1 /dev/lb1
sudo ln -s /dev/loop0p2 /dev/lb2
# Now finally run WoeUSB
sudo woeusb --device source.iso /dev/lb

Expected Behavior

A --file option should just create an IMG or even better, an iso file (with --iso option).

Current Behavior

No support for writing raw images or iso-files

Info of My Environment

WoeUSB Version

v0.2.7

WoeUSB Source

WoEUSB-ng from AUR (Arch)

Information about the Operating System

Manjaro

Information about the Source Media

Win10_Edu_21H1_German_x64.iso

Information about the Target Device

Request for file. Right now: Loopback device.

@WaxyMocha WaxyMocha added the enhancement New feature or request label Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants