naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
ac3a84
From e99dcd2e9e9547d84c0bfc1dc4c68f1fe2f56f62 Mon Sep 17 00:00:00 2001
ac3a84
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ac3a84
Date: Thu, 10 Nov 2022 15:51:30 +0900
ac3a84
Subject: [PATCH] test: create config under /run
ac3a84
ac3a84
(cherry picked from commit e4b3f0dfe91ae0b95f30594c7671be39c0a599b1)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 test/units/testsuite-75.sh | 4 +++-
ac3a84
 1 file changed, 3 insertions(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh
ac3a84
index 04a8b6e9cc..53ceced641 100755
ac3a84
--- a/test/units/testsuite-75.sh
ac3a84
+++ b/test/units/testsuite-75.sh
ac3a84
@@ -79,11 +79,13 @@ DNSSEC=allow-downgrade
ac3a84
 DNS=10.0.0.1
ac3a84
 EOF
ac3a84
 
ac3a84
+mkdir -p /run/systemd/resolved.conf.d
ac3a84
 {
ac3a84
+    echo "[Resolve]"
ac3a84
     echo "FallbackDNS="
ac3a84
     echo "DNSSEC=allow-downgrade"
ac3a84
     echo "DNSOverTLS=opportunistic"
ac3a84
-} >>/etc/systemd/resolved.conf
ac3a84
+} >/run/systemd/resolved.conf.d/test.conf
ac3a84
 ln -svf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
ac3a84
 # Override the default NTA list, which turns off DNSSEC validation for (among
ac3a84
 # others) the test. domain