#! /bin/sh set -eu case ${PASS:-} in *.live) ;; *) exit 0 ;; esac cat < /etc/initramfs-tools/conf.d/default-layer.conf LAYERFS_PATH=${PASS}.squashfs EOF glib-compile-schemas /usr/share/glib-2.0/schemas/