From 3ec8601febc286162439aaa099e2f213f092f7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Thu, 6 Apr 2023 19:25:44 +0200 Subject: [PATCH] Ok, early hooks do not have the environment. Just case on canary being the only one using hooks for now. --- live-build/ubuntu/hooks/020-canary-live.chroot_early | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/live-build/ubuntu/hooks/020-canary-live.chroot_early b/live-build/ubuntu/hooks/020-canary-live.chroot_early index 64a3d7de..884b05b5 100755 --- a/live-build/ubuntu/hooks/020-canary-live.chroot_early +++ b/live-build/ubuntu/hooks/020-canary-live.chroot_early @@ -10,16 +10,7 @@ case $PASS in ;; esac -. /root/config/chroot - -case ${SUBPROJECT:-} in - canary) - ;; - *) - echo "We don't run canary hooks for this project." - exit 0 - ;; -esac +# TODO: Make sure this is only executed for canary builds cat < /etc/initramfs-tools/conf.d/casperize.conf export CASPER_GENERATE_UUID=1