You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu/hooks/020-canary-live.chroot_early

24 lines
456 B

#! /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