From 8add8daa494bdce813367e4825614843d03a60a3 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 20 Mar 2025 17:22:32 +0000 Subject: [PATCH] ubuntu-image: Avoid filling tmpfs-based /tmp --- live-build/auto/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/live-build/auto/build b/live-build/auto/build index 4990202c..c531a19b 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -48,8 +48,9 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then exit 0 else # Ubuntu classic preinstalled images + # --workdir is specified to avoid filling /tmp which is now a tmpfs /snap/bin/ubuntu-image classic --verbose $UBUNTU_IMAGE_ARGS \ - -O output "$IMAGE_DEFINITION" + --workdir work -O output "$IMAGE_DEFINITION" # 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 # artifacts from the output directory. The image definition file