livecd-rootfs/live-build/ubuntu/hooks/020-canary-live.chroot_early
2023-08-26 15:12:09 -07:00

24 lines
456 B
Bash
Executable File

#! /bin/sh
set -eu
case ${PASS:-} in
standard.live)
;;
*)
exit 0
;;
esac
# TODO: Make sure this is only executed for canary builds (in a way
# other then relying on the fact that these hooks are only copied for
# an ubuntu:canary build)
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