-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Support for compressed files #325
Comments
Hi @kkaiser1952 , So you mean Etcher should be able to burn I think checking the extension should be a good enough clue. |
Well if what you are saying is to let Etcher open a .GZ file from my desktop and burn a SD card with it then yes, thats what I mean. |
@jviotti I've just tried Etcher and it seems fantastic for what we put in place with our board SD images. To write them on a Windows platform, we advice users to use the Rawrite32 tool as it handles such a file format... Thanks, bye. |
@noglitch Thanks for the suggestion! I edited the title to include |
@jviotti fantastic tool, if you include *.img.xz files beagleboard.org can switch too... ;) |
@RobertCNelson Thanks a lot! Taking notes :) To summarise:
|
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
This PR introduces `etcher-image-stream`: https://github.com/resin-io-modules/etcher-image-stream a module that will handle support for decompression, URL streaming, and any other way to get a source of data to write in Etcher. Most of the changes in this PR are because XZ decompression includes a native dependency (no pure JS implementations out there for now), so we had to tweak various things for the dependency to work correctly on Etcher/Electron. See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
Sorry for the huge delay on this issue, I'm finally allocating some time to finish the remaining compression formats. I just PRed GZ support, and will be looking forward to PR bzip2 support as well today. |
See: balena-io/etcher#325 Signed-off-by: Juan Cruz Viotti <[email protected]>
See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
See: #325 Signed-off-by: Juan Cruz Viotti <[email protected]>
Hi I've just tested the xz and bz2 image writers with 1.0.0-beta7 version and:
(I run it from Linux Ubuntu 16.04) Hope that it can help, Bye, |
Hi @noglitch , Thanks for reporting this! It seems that you're hitting this error: regular/unbzip2-stream#7 from one of the dependencies we're using. I'll try to allocate some time to work myself on it! |
Hi @noglitch , Turns out the bz2 selection issue was an Electron bug with the open dialog on GNU/Linux (see electron/electron#6305), which was fixed in the latests versions! |
Hi @noglitch , I'm happy to announce the bz2 issue you've experienced has just been fixed in the bz2 implementation we're using (se balena-io-modules/etcher-image-stream#37), and it's coming on the next release! |
Hey @mpvader, that's because Etcher currently checks the image extension – in this case |
Hi @jhermsmeier, thank you for the fast response. Shouldn't it just compare the most right part? So as long as it ends in .bz2 it's fine? These 'cascading' extensions are quite common for images and such. |
And, just to be clear: I'd expect etcher to unzip the .bz2 file, and burn its contents. Not burn the zipped file. |
@mpvader well, what it basically does is look at the base extension (i.e.
Yup, that's exactly what it does (unzip & flash the contained image) |
ahh.. thanks. Understood! looking forward to your fix then :) |
@jhermsmeier Was this fixed by #1363 ? (is it worth adding any extra unit tests?) |
Only partially – there's another check in the GUI, which won't let you select unrecognised images – working on fixing that now. |
But presumably that GUI-check will still allow @mpvader 's |
@lurch oh yes, right, that should work already now |
When I burn the SD to a hard drive I generally save it as .GZ for space reasons. It would be great if Etcher recognized these and could use them to burn it back to an SD.
The text was updated successfully, but these errors were encountered: