livecd-rootfs/live-build/ubuntu/hooks/020-ubuntu-live.chroot_early
Steve Langasek b45cad12b4 Ship static files instead of generating in a hook
When the files we're creating in the live layer have static content, ship
them in live-build/ubuntu/includes.chroot.minimal.standard.live instead of
generating them from live-build/ubuntu/hooks/020-ubuntu-live.chroot_early.

Also fixes the fact that
live-build/ubuntu/hooks/020-ubuntu-live.chroot_early was incorrectly writing
to /root in the previous upload instead of /usr.
2023-12-20 11:39:38 -08:00

18 lines
260 B
Bash
Executable File

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