Skip to content

Commit 0129ce9

Browse files
committed
image2disk: add .zst extension, fix Readme
Signed-off-by: Lucas Druschke <[email protected]>
1 parent 50bd343 commit 0129ce9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

image2disk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ actions:
5858

5959
## Supported Compression formats
6060

61-
- bzip2 (`.bzip2`)
61+
- bzip2 (`.bzip2`, `.bz2`)
6262
- gzip (`.gz`)
6363
- xz (`.xz`)
64-
- xs (`.xs`)
64+
- zstd (`.zs`, `.zst`)

image2disk/image/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func findDecompressor(imageURL string, r io.Reader) (io.ReadCloser, error) {
186186
return nil, fmt.Errorf("[ERROR] New xz reader: %w", err)
187187
}
188188
return io.NopCloser(reader), nil
189-
case ".zs":
189+
case ".zs", ".zst":
190190
reader, err := zstd.NewReader(r)
191191
if err != nil {
192192
return nil, fmt.Errorf("[ERROR] New zs reader: %w", err)

0 commit comments

Comments
 (0)