summaryrefslogtreecommitdiff
path: root/roles/preseed/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/preseed/templates')
-rw-r--r--roles/preseed/templates/preseed_debian-buster.cfg.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/preseed/templates/preseed_debian-buster.cfg.j2 b/roles/preseed/templates/preseed_debian-buster.cfg.j2
index 6e9f4e47..44d8a814 100644
--- a/roles/preseed/templates/preseed_debian-buster.cfg.j2
+++ b/roles/preseed/templates/preseed_debian-buster.cfg.j2
@@ -134,6 +134,10 @@ d-i preseed/late_command string \
in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \
in-target bash -c "passwd -d root && passwd -l root"; \
in-target bash -c "sed -e 's/^allow-hotplug/auto/' -i /etc/network/interfaces"; \
+ mkdir -p /target/etc/systemd/network; \
+ bash -c "echo '[Link]' > /target/etc/systemd/network/90-namepolicy-path.link"; \
+ bash -c "echo 'NamePolicy=path' >> /target/etc/systemd/network/90-namepolicy-path.link"; \
+ in-target bash -c "update-initramfs -u"; \
mkdir -p -m 0700 /target/root/.ssh; \
cp /authorized_keys /target/root/.ssh/; \
{% if hostvars[hostname].ansible_port is defined %}