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

[Feature] Flash from .img.{gz,bz,xz,…} and .zip #114

Open
Salamandar opened this issue Nov 30, 2020 · 10 comments
Open

[Feature] Flash from .img.{gz,bz,xz,…} and .zip #114

Salamandar opened this issue Nov 30, 2020 · 10 comments

Comments

@Salamandar
Copy link

Something Etcher still does "better" is handling archives. For the moment we need to extract then flash with Popsicle.

Would it be hard to implement ? Could a newbie in Rust implement this ?

@ids1024
Copy link
Member

ids1024 commented Nov 30, 2020

Seems like a good feature to add.

Would it be hard to implement ? Could a newbie in Rust implement this?

I don't think it would be too hard. But it might not be too straightforward for someone without familiarity with Rust and Popsicle's code to add.

Probably the library code could be updated to decompress the file on-the-fly, either with libraries on subprocesses. And while not strictly required, the GUI and CLI should probably display something to indicate that the compression format is recognized.

@ids1024
Copy link
Member

ids1024 commented Dec 2, 2020

Do you have some examples of isos distributed compressed like this? It seems the convention of Linux distros is to use a plain iso, but containing a squashfs filesystem.

@Salamandar
Copy link
Author

Salamandar commented Dec 2, 2020

Do you have some examples of isos distributed compressed like this? It seems the convention of Linux distros is to use a plain iso, but containing a squashfs filesystem.

Actually, I was using Popsicle to flash SD cards for Raspberry pi or other ARM boards. Those usually are provided as .zip.
Obviously, I'm not talking about filesystem tree archives like ArchlinuxARM provides, but disk images like Raspbian ;)

@ergpopler
Copy link

Do you have some examples of isos distributed compressed like this? It seems the convention of Linux distros is to use a plain iso, but containing a squashfs filesystem.

https://www.freebsd.org/ | has xz ISO's
I've seen a few linux distros do the same.

@ChaosBlades
Copy link

Here are some examples. As mentioned Raspberry Pi .img files are usually provided zipped. Which these are.
https://github.com/cadriel/FluiddPI/releases/tag/v1.15.0
https://octoprint.org/download/
https://github.com/raymondh2/MainsailOS/releases

@perroboc
Copy link

Bump because I was following the guide from Steam and this would've come in handy:

https://help.steampowered.com/en/faqs/view/1b71-edf2-eb6d-2bb3

The image comes in .img.bz2 format

@cassidyjames
Copy link
Contributor

Endless OS also uses both .img.xz and .img.gz images for deployments of the OS.

@sofiedotcafe
Copy link

sofiedotcafe commented Apr 8, 2024

Fedora ARM64 images use .raw.xz and .img.xz

@taltamir
Copy link

taltamir commented Aug 17, 2024

until such an ability is implemented, it should instead recognize it and warn the user
something like:

you are trying to flash an img.xz file. compressed img files are currently not supported. please extract the file to get the .img and flash that instead.

@JaggedJax
Copy link

Just to add more examples, Home Assistant publishes as img.xz

https://www.home-assistant.io/installation/generic-x86-64

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

No branches or pull requests

9 participants