mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 17:31:38 +00:00
copy /autoinstall.yaml in initrd to /run/initrd-autoinstall.yaml if present
This commit is contained in:
parent
377e7b4ddd
commit
547eb7bda8
@ -82,6 +82,18 @@ snap_preseed $INSTALLER_ROOT subiquity/classic
|
|||||||
# Drop lxd from the installer layer preseed
|
# Drop lxd from the installer layer preseed
|
||||||
sed -i -e'N;/name: lxd/,+2d' $INSTALLER_ROOT/var/lib/snapd/seed/seed.yaml
|
sed -i -e'N;/name: lxd/,+2d' $INSTALLER_ROOT/var/lib/snapd/seed/seed.yaml
|
||||||
|
|
||||||
|
# Add initramfs hook to copy /autoinstall.yaml from initrd
|
||||||
|
# /run/initrd-autoinstall.yaml
|
||||||
|
cat <<EOF > "$INSTALLER_ROOT"/etc/initramfs-tools/scripts/init-bottom/copy-autoinstall
|
||||||
|
#!/bin/sh
|
||||||
|
case \$1 in
|
||||||
|
prereqs) exit 0;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
[ -f /autoinstall.yaml ] && cp /autoinstall.yaml /run/initrd-autoinstall.yaml
|
||||||
|
EOF
|
||||||
|
chmod +x "$INSTALLER_ROOT"/etc/initramfs-tools/scripts/init-bottom/copy-autoinstall
|
||||||
|
|
||||||
teardown_mountpoint "$INSTALLER_ROOT"
|
teardown_mountpoint "$INSTALLER_ROOT"
|
||||||
|
|
||||||
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
|
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user