From 00d523ea0d3965e88447c17f1f4f95c34ab895e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 19 Apr 2024 00:56:50 -0400 Subject: [PATCH] build-image-distrobuilder: Handle armhf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- bin/build-image-distrobuilder | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/build-image-distrobuilder b/bin/build-image-distrobuilder index 6f6247acf..9782731a0 100755 --- a/bin/build-image-distrobuilder +++ b/bin/build-image-distrobuilder @@ -107,7 +107,9 @@ apt-get install --yes --no-install-recommends \ apt-get clean # Install distrobuilder -curl -sL "https://go.dev/dl/go1.21.3.linux-\$(dpkg --print-architecture).tar.gz" | tar -zxv -C /usr/local/ +GOARCH=\$(dpkg --print-architecture) +[ "\${GOARCH}" = "armhf" ] && GOARCH=armv6l +curl -sL "https://go.dev/dl/go1.21.3.linux-\${GOARCH}.tar.gz" | tar -zxv -C /usr/local/ export PATH=/usr/local/go/bin:\${PATH} git clone https://github.com/lxc/distrobuilder --depth 1 cd distrobuilder