From 4c6f4f4a3da8ada6115929d92a7a2ad64444385e Mon Sep 17 00:00:00 2001 From: isa Date: Tue, 10 Sep 2024 14:19:59 -0400 Subject: [PATCH] Add missing files to correct dns fix commit (0d13ca38df) --- .../citadel-config/files/systemd/watch-resolvconf.path | 9 +++++++++ .../files/systemd/watch-resolvconf.service | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.path create mode 100644 meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.service diff --git a/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.path b/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.path new file mode 100644 index 0000000..8a68036 --- /dev/null +++ b/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.path @@ -0,0 +1,9 @@ +[Unit] +Description=Watch /run/NetworkManager + +[Path] +PathChanged=/run/NetworkManager +MakeDirectory=true + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.service b/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.service new file mode 100644 index 0000000..21cc095 --- /dev/null +++ b/meta-citadel/recipes-citadel/citadel-config/files/systemd/watch-resolvconf.service @@ -0,0 +1,7 @@ +[Unit] +Description=Copy resolv.conf to /storage/citadel-state +ConditionPathExists=/run/NetworkManager/resolv.conf +ConditionPathExists=/storage/citadel-state +[Service] +Type=oneshot +ExecStart=/bin/cp /run/NetworkManager/resolv.conf /storage/citadel-state/resolv.conf \ No newline at end of file