From 377e7b4ddd5bb09bc210f30d03938b5e692d72ed Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 8 Nov 2019 15:39:45 +1300 Subject: [PATCH] mount a filesystem with label autoinstall at /autoinstall for live-server This is one of the ways an autoinstall file can be provided. --- .../hooks/032-installer-squashfs.binary | 14 +++++++++++--- .../lib/systemd/system/subiquity_autoinstall.mount | 4 ++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 live-build/ubuntu-server/includes.binary/overlay/usr/lib/systemd/system/subiquity_autoinstall.mount diff --git a/live-build/ubuntu-server/hooks/032-installer-squashfs.binary b/live-build/ubuntu-server/hooks/032-installer-squashfs.binary index 957eb4cb..bf2f7608 100755 --- a/live-build/ubuntu-server/hooks/032-installer-squashfs.binary +++ b/live-build/ubuntu-server/hooks/032-installer-squashfs.binary @@ -42,14 +42,22 @@ setup_mountpoint binary/boot/squashfs.dir # to a new VT when there is no device there (LP: #1750117). # It would be better to have this in ../includes.binary/overlay but # you can't have backslashes in filenames in bzr branches! -DEVICE_UNIT_NAME='dev-disk-by\x2duuid-00c629d6\x2d06ab\x2d4dfd\x2db21e\x2dc3186f34105d.device' -mkdir -p "$INSTALLER_ROOT/etc/systemd/system/$DEVICE_UNIT_NAME.d" -cat > "$INSTALLER_ROOT/etc/systemd/system/$DEVICE_UNIT_NAME.d/override.conf" < "$INSTALLER_ROOT/etc/systemd/system/$ANSWERS_DEVICE_UNIT.d/override.conf" < "$INSTALLER_ROOT/etc/systemd/system/$AUTOINSTALL_DEVICE_UNIT.d.d/override.conf" <