2023-03-30 14:09:04 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2023-04-06 16:47:59 +02:00
|
|
|
set -eu
|
|
|
|
|
2023-04-13 09:45:04 +02:00
|
|
|
case ${PASS:-} in
|
2023-03-30 14:09:04 +02:00
|
|
|
minimal.standard.live)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2023-04-06 19:25:44 +02:00
|
|
|
# TODO: Make sure this is only executed for canary builds
|
2023-03-30 14:09:04 +02:00
|
|
|
|
|
|
|
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
|
2023-04-17 16:52:23 -07:00
|
|
|
|
|
|
|
if [ "$(dpkg --print-architecture)" = amd64 ]; then
|
|
|
|
echo "I: Enabling amd64 multiarch support on amd64"
|
|
|
|
dpkg --add-architecture i386
|
|
|
|
|
|
|
|
apt-get -y update
|
|
|
|
fi
|