From a027e767d22000d6c7827f3018df31423dd41815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Wed, 31 May 2023 15:14:55 +0200 Subject: [PATCH] Explicitly use the snap binary for ubuntu-image. --- live-build/auto/build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index b71c8942..f408f324 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -97,7 +97,7 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then # We could already do that, but then we'd still have to do the # compressing for the core images. if [ "$PROJECT" = "ubuntu-core" ]; then - ubuntu-image snap $UBUNTU_IMAGE_ARGS \ + /snap/bin/ubuntu-image snap $UBUNTU_IMAGE_ARGS \ -O output "$PREFIX".model-assertion # XXX: currently we only have one image generated, but really # we should be supporting more than one for models that @@ -106,7 +106,7 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then xz -0 -T4 "$PREFIX".img mv output/seed.manifest "$PREFIX".manifest else - ubuntu-image classic --verbose $UBUNTU_IMAGE_ARGS \ + /snap/bin/ubuntu-image classic --verbose $UBUNTU_IMAGE_ARGS \ -O output "$PREFIX".yaml # Since the output of the ubuntu-image call can vary based on what # kind of an image we build, the safest bet is to 'export' all the