From 5f956985442f1e45e9abb00cee1697165bb17bb2 Mon Sep 17 00:00:00 2001 From: paulober Date: Mon, 8 Sep 2025 22:09:46 +0100 Subject: [PATCH] fix(raspberry-pi-os): Systemd network service template fix Signed-off-by: paulober --- systemd/cloud-init-network.service.tmpl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/systemd/cloud-init-network.service.tmpl b/systemd/cloud-init-network.service.tmpl index 9658af1d633..c284024be76 100644 --- a/systemd/cloud-init-network.service.tmpl +++ b/systemd/cloud-init-network.service.tmpl @@ -2,21 +2,21 @@ [Unit] # https://docs.cloud-init.io/en/latest/explanation/boot.html Description=Cloud-init: Network Stage -{% if variant not in ["almalinux", "cloudlinux", "photon", "raspberry-pi-os", "rhel"] %} +{% if variant not in ["almalinux", "cloudlinux", "photon", "rhel"] %} DefaultDependencies=no {% endif %} Wants=cloud-init-local.service Wants=sshd-keygen.service Wants=sshd.service After=cloud-init-local.service -{% if variant not in ["ubuntu"] %} +{% if variant not in ["ubuntu", "raspberry-pi-os"] %} After=systemd-networkd-wait-online.service {% endif %} {% if variant in ["ubuntu", "unknown", "debian", "raspberry-pi-os"] %} After=networking.service {% endif %} {% if variant in ["almalinux", "centos", "cloudlinux", "eurolinux", "fedora", - "miraclelinux", "openeuler", "OpenCloudOS", "openmandriva", "raspberry-pi-os", + "miraclelinux", "openeuler", "OpenCloudOS", "openmandriva", "rhel", "rocky", "suse", "TencentOS", "virtuozzo"] %} After=NetworkManager.service After=NetworkManager-wait-online.service @@ -28,13 +28,10 @@ After=wicked.service After=dbus.service {% endif %} Before=network-online.target -{% if variant == "raspberry-pi-os" %} -Before=avahi-daemon.service -{% endif %} Before=sshd-keygen.service Before=sshd.service Before=systemd-user-sessions.service -{% if variant in ["ubuntu", "unknown", "debian"] %} +{% if variant in ["ubuntu", "unknown", "debian", "raspberry-pi-os"] %} Before=sysinit.target Before=shutdown.target Conflicts=shutdown.target