#! /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 < /etc/initramfs-tools/conf.d/casperize.conf export CASPER_GENERATE_UUID=1 EOF cat < /etc/initramfs-tools/conf.d/default-layer.conf LAYERFS_PATH=${PASS}.squashfs EOF