From 69baa44a3abac81e6eabb50f076e30d72ce697a0 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 25 Jul 2024 15:44:40 -0600 Subject: [PATCH] use squashfuse if available --- container-runtime/update-image.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/container-runtime/update-image.sh b/container-runtime/update-image.sh index 3a8813518..61429821c 100755 --- a/container-runtime/update-image.sh +++ b/container-runtime/update-image.sh @@ -8,7 +8,11 @@ if mountpoint tmp/combined; then sudo umount -R tmp/combined; fi if mountpoint tmp/lower; then sudo umount tmp/lower; fi sudo rm -rf tmp mkdir -p tmp/lower tmp/upper tmp/work tmp/combined -sudo mount -o loop -t squashfs debian.${ARCH}.squashfs tmp/lower +if which squashfuse > /dev/null; then + sudo squashfuse debian.${ARCH}.squashfs tmp/lower +else + sudo mount debian.${ARCH}.squashfs tmp/lower +fi sudo mount -t overlay -olowerdir=tmp/lower,upperdir=tmp/upper,workdir=tmp/work overlay tmp/combined QEMU=