Ok, early hooks do not have the environment. Just case on canary being the only one using hooks for now.

This commit is contained in:
Łukasz 'sil2100' Zemczak 2023-04-06 19:25:44 +02:00
parent 3752ea7cf1
commit 3ec8601feb

View File

@ -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 <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
export CASPER_GENERATE_UUID=1