bootiso icon indicating copy to clipboard operation
bootiso copied to clipboard

Feature request: Automatic handling of compressed images

Open emk2203 opened this issue 6 years ago • 5 comments

It would be nice to have Etcher-like functionality to detect and handle compressed images like img.xz.

This in addition to handling img files in general.

emk2203 avatar Oct 19 '19 10:10 emk2203

@emk2203 The thing is, it would add a lot of new dependencies for what seems like an edge-case. What is your typical use case?

jsamr avatar Apr 25 '20 12:04 jsamr

The typical use case would be just that: Taking a downloaded system image in img.xz format and having bootiso handle it transparently. These are used a lot for Raspberry Pi and other single-board computers. When using dd, I would just pipe the file from the decompressor, but with bootiso, it's not so easy.

The process would be:

  • feed file into bootiso when prompted
    • bootiso uses as-is if img or iso file
    • with .xz extension, file gets passed through xzfirst for on-the-fly decompression

If xz is not installed, which is unlikely, just an error could be given.

emk2203 avatar Apr 25 '20 12:04 emk2203

For reference:

xzcat file.img.xz | dd of=/dev/sdx

davidebeatrici avatar Aug 03 '22 23:08 davidebeatrici

For reference:

xzcat file.img.xz | dd of=/dev/sdx

We don't use dd 100% of the time. For instance, to handle windows images or when we manually install a bootloader.

jsamr avatar Aug 04 '22 08:08 jsamr

Right. I believe supporting xz archives for Linux images would already be a great start though.

davidebeatrici avatar Aug 04 '22 18:08 davidebeatrici