From 60da7e7c4338f5b54236ccd0d866f6b706532374 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 8 Feb 2017 15:18:22 -0800 Subject: [PATCH] Also make squashfs skippable with $IMAGE_TARGETS --- live-build/ubuntu-cpc/hooks/032-root-squashfs.binary | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary b/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary index e338a05f..63a00894 100755 --- a/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary +++ b/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary @@ -3,6 +3,15 @@ # # Generate a squashfs root and manifest +case $IMAGE_TARGETS in + ""|*squashfs*) + ;; + *) + echo "Skipping squashfs build" + exit 0 + ;; +esac + if [ -n "$SUBARCH" ]; then echo "Skipping rootfs build for subarch flavor build" exit 0