From 99146b1913463ef0a9e6c0d4c8335ac8587ffea3 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 17 Apr 2024 15:23:31 -0400 Subject: [PATCH] Switch to zstd imagebuilder --- openwrtbuilder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index bed8c73..36a04ae 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -699,7 +699,7 @@ extract() { debug "${FUNCNAME[0]}" declare archive="$1" declare out_dir="$2" - if ! execute tar -xf "$archive" -C "$out_dir" --strip-components 1; then + if ! execute tar -axf "$archive" -C "$out_dir" --strip-components 1; then echo "Extraction failed" return 1 fi @@ -817,11 +817,11 @@ main() { if [[ "$RELEASE" == "snapshot" ]]; then declare url_prefix="https://downloads.openwrt.org/snapshots/targets/$TARGET" - declare url_filename="openwrt-imagebuilder-${TARGET//\//-}.Linux-x86_64.tar.xz" + declare url_filename="openwrt-imagebuilder-${TARGET//\//-}.Linux-x86_64.tar.zst" declare img_fname="openwrt-${TARGET//\//-}-$DEVICE-$FILESYSTEM" else declare url_prefix="https://downloads.openwrt.org/releases/$RELEASE/targets/$TARGET" - declare url_filename="openwrt-imagebuilder-$RELEASE-${TARGET//\//-}.Linux-x86_64.tar.xz" + declare url_filename="openwrt-imagebuilder-$RELEASE-${TARGET//\//-}.Linux-x86_64.tar.zst" declare img_fname="openwrt-$RELEASE-${TARGET//\//-}-$DEVICE-$FILESYSTEM" fi