naccyde / rpms / systemd

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