Harald Hoyer fe68ba
From 654484b82bf6a3983244e76e4f38e9a2d080cb9b Mon Sep 17 00:00:00 2001
Harald Hoyer fe68ba
From: tpgxyz <tpgxyz@gmail.com>
Harald Hoyer fe68ba
Date: Wed, 18 Apr 2018 20:57:33 +0200
Harald Hoyer fe68ba
Subject: [PATCH] fix zstd magic header
Harald Hoyer fe68ba
Harald Hoyer fe68ba
---
Harald Hoyer fe68ba
 modules.d/99img-lib/img-lib.sh | 2 +-
Harald Hoyer fe68ba
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe68ba
Harald Hoyer fe68ba
diff --git a/modules.d/99img-lib/img-lib.sh b/modules.d/99img-lib/img-lib.sh
Harald Hoyer fe68ba
index 43785812..f4774153 100755
Harald Hoyer fe68ba
--- a/modules.d/99img-lib/img-lib.sh
Harald Hoyer fe68ba
+++ b/modules.d/99img-lib/img-lib.sh
Harald Hoyer fe68ba
@@ -8,7 +8,7 @@
Harald Hoyer fe68ba
 # works with stdin if $1 is not set.
Harald Hoyer fe68ba
 det_archive() {
Harald Hoyer fe68ba
     # NOTE: echo -e works in ash and bash, but not dash
Harald Hoyer fe68ba
-    local bz="BZh" xz="$(echo -e '\xfd7zXZ')" gz="$(echo -e '\x1f\x8b')" zs="$(echo -e '0xFD2FB528')"
Harald Hoyer fe68ba
+    local bz="BZh" xz="$(echo -e '\xfd7zXZ')" gz="$(echo -e '\x1f\x8b')" zs="$(echo -e '\x28\xB5\x2F\xFD')"
Harald Hoyer fe68ba
     local headerblock="$(dd ${1:+if=$1} bs=262 count=1 2>/dev/null)"
Harald Hoyer fe68ba
     case "$headerblock" in
Harald Hoyer fe68ba
         $xz*) echo "xz" ;;
Harald Hoyer fe68ba