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