ubuntu-server: default-layer.conf in casper pass

default-layer.conf needs to be done in the casperization pass or we
don't get that file.
This commit is contained in:
Dan Bungert 2025-02-11 08:27:16 -07:00
parent 15b069883f
commit e3355e29d8
2 changed files with 4 additions and 17 deletions

View File

@ -15,3 +15,7 @@ esac
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

View File

@ -1,17 +0,0 @@
#!/bin/bash -ex
# vi: ts=4 noexpandtab
case $PASS in
ubuntu-server-minimal.ubuntu-server.installer.*.*)
exit 0
;;
ubuntu-server-minimal.ubuntu-server.installer.*)
;;
*)
exit 0
;;
esac
cat <<EOF > /etc/initramfs-tools/conf.d/default-layer.conf
LAYERFS_PATH=${PASS}.squashfs
EOF