summaryrefslogtreecommitdiff
path: root/test/units/testsuite-75.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-08-26 18:45:38 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-08-27 11:27:04 +0200
commitfa17101b8efed0e2deeffe5ecd67c993f639debb (patch)
treee6418a7e6deee4a4813eb6132c7fcc4b745b69b2 /test/units/testsuite-75.sh
parent57063a4ab25851d453423408d5b740b27007c7fe (diff)
downloadsystemd-fa17101b8efed0e2deeffe5ecd67c993f639debb.tar.gz
test: fix delv trust anchors location on Ubuntu
delv on Ubuntu defaults to /etc/bind/bind.keys instead of /etc/bind.keys when reading trust anchors, so let's create a symlink to make the test work there as well. Resolves: #24453
Diffstat (limited to 'test/units/testsuite-75.sh')
-rwxr-xr-xtest/units/testsuite-75.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh
index a14ee22841..fbe37342dd 100755
--- a/test/units/testsuite-75.sh
+++ b/test/units/testsuite-75.sh
@@ -57,6 +57,9 @@ keymgr . ds | sed 's/ DS/ IN DS/g' >/etc/dnssec-trust-anchors.d/root.positive
keymgr . dnskey | sed -r 's/^\. DNSKEY ([0-9]+ [0-9]+ [0-9]+) (.+)$/. static-key \1 "\2";/g'
echo '};'
} >/etc/bind.keys
+# Create an /etc/bind/bind.keys symlink, which is used by delv on Ubuntu
+mkdir -p /etc/bind
+ln -svf /etc/bind.keys /etc/bind/bind.keys
# Start the services
systemctl unmask systemd-networkd systemd-resolved