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

canary-build
Łukasz 'sil2100' Zemczak 2 years ago
parent 3752ea7cf1
commit 3ec8601feb

@ -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

Loading…
Cancel
Save