Skip to content

Commit d8c1f2e

Browse files
authored
Adjust map.go to support QCOW2 images without .xz
1 parent d5b932a commit d8c1f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type ReleaseFile struct {
8888

8989
var distroCaser = cases.Title(language.Und)
9090

91-
var imageExtensions = []string{"img.xz", "img.qcow2.xz", "boot.bin.xz"}
91+
var imageExtensions = []string{"img.xz", "img.qcow2", "boot.bin.xz"}
9292

9393
// loadMapJSON loads a map file from JSON, based on the format specified in the github issue.
9494
// See: https://github.com/armbian/os/pull/129
@@ -144,7 +144,7 @@ func loadMapJSON(f io.Reader) (map[string]string, error) {
144144
sb.WriteString("-boot-csot")
145145
case strings.Contains(file.Extension, "rootfs.img.xz"):
146146
sb.WriteString("-rootfs")
147-
case strings.Contains(file.Extension, "img.qcow2.xz"):
147+
case strings.Contains(file.Extension, "img.qcow2"):
148148
sb.WriteString("-qcow2")
149149
case strings.Contains(file.Extension, "boot.bin.xz"):
150150
sb.WriteString("-uboot-bin")

0 commit comments

Comments
 (0)