Add .xz compression to image2disk
thebsdbox opened this issue · 1 comments
thebsdbox commented
Expected Behaviour
Use the file
package to examine the extension of the URL and use the correct decompressor for streaming compressed data to a block device.
.gz
==> gz streamer
.xz
==> xz streamer
Current Behaviour
if COMPRESSED=y
then data is ran through the gz
streamer.
Possible Solution
switch filepath.Ext("URL") {
case "gz":
case "xz":
}
Steps to Reproduce (for bugs)
Context
Your Environment
-
Operating System and version (e.g. Linux, Windows, MacOS):
-
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
-
Link to your project or a code example to reproduce issue: