From a5a9b1d4092d58b2bd9a5f03e4597516eb6ea58f Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 5 Aug 2024 07:23:07 +0200 Subject: [PATCH] Add new / forgotten exceptions --- map.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/map.go b/map.go index 6a7f313..824e2ab 100644 --- a/map.go +++ b/map.go @@ -133,12 +133,18 @@ func loadMapJSON(f io.Reader) (map[string]string, error) { // Check special case for some extensions switch { + case strings.HasSuffix(file.Extension, "boot-sms.img.xz"): + sb.WriteString("-boot-sms") case strings.HasSuffix(file.Extension, "boot-boe.img.xz"): sb.WriteString("-boot-boe") case strings.HasSuffix(file.Extension, "boot-csot.img.xz"): sb.WriteString("-boot-csot") case strings.HasSuffix(file.Extension, "rootfs.img.xz"): sb.WriteString("-rootfs") + case strings.HasSuffix(file.Extension, "img.qcow2.xz"): + sb.WriteString("-qcow2") + case strings.HasSuffix(file.Extension, "oowow.img.xz"): + sb.WriteString("-oowow") } if strings.HasSuffix(file.Extension, "img.xz") {