livecd-rootfs/live-build/ubuntu/hooks/020-canary-live.chroot_early
2023-04-06 16:45:58 +02:00

29 lines
454 B
Bash
Executable File

#! /bin/sh
case $PASS in
minimal.standard.live)
;;
*)
exit 0
;;
esac
. /root/config/chroot
case ${SUBPROJECT:-} in
canary)
;;
*)
echo "We don't run canary hooks for this project."
exit 0
;;
esac
cat <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
export CASPER_GENERATE_UUID=1
EOF
cat <<EOF > /etc/initramfs-tools/conf.d/default-layer.conf
LAYERFS_PATH=${PASS}.squashfs
EOF