Skip to content

Commit

Permalink
adjust failing unsquashfs on 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Jun 26, 2024
1 parent 24992b5 commit 31f5260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/lxd/setup-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ REGCTL="${REGCTL:=${DIR}/../../../src/k8s/tools/regctl.sh}" # path to regctl b
# figure out base snap and list of images
if [ "${TEST_SNAP}" != "" ]; then
dir="$(mktemp -d)"
unsquashfs -d "${dir}" "${TEST_SNAP}"
unsquashfs -d "${dir}/snap" "${TEST_SNAP}"

BASE_SNAP="$(cat "${dir}/meta/snap.yaml" | grep base: | head -n1 | sed "s/base: //")"
IMAGES="$(cat "${dir}/images.txt")"
BASE_SNAP="$(cat "${dir}/snap/meta/snap.yaml" | grep base: | head -n1 | sed "s/base: //")"
IMAGES="$(cat "${dir}/snap/images.txt")"

rm -rf "${dir}"
fi
Expand Down

0 comments on commit 31f5260

Please sign in to comment.