Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Feature request: Automatic handling of compressed images #55

Open
emk2203 opened this issue Oct 19, 2019 · 5 comments
Open

Feature request: Automatic handling of compressed images #55

emk2203 opened this issue Oct 19, 2019 · 5 comments
Labels
feature-request help welcome PRs are welcome to implement this feature or support his image.

Comments

@emk2203
Copy link

emk2203 commented Oct 19, 2019

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.

@jsamr
Copy link
Owner

jsamr commented Apr 25, 2020

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

@emk2203
Copy link
Author

emk2203 commented Apr 25, 2020

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.

@jsamr jsamr added the help welcome PRs are welcome to implement this feature or support his image. label Mar 25, 2021
@davidebeatrici
Copy link
Contributor

For reference:

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

@jsamr
Copy link
Owner

jsamr commented Aug 4, 2022

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.

@davidebeatrici
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request help welcome PRs are welcome to implement this feature or support his image.
Projects
None yet
Development

No branches or pull requests

3 participants