]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix delv trust anchors location on Ubuntu
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Aug 2022 16:45:38 +0000 (18:45 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 27 Aug 2022 09:27:04 +0000 (11:27 +0200)
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

test/units/testsuite-75.sh

index a14ee2284173f5be8c76f78556f099203ca61541..fbe37342dd75d969752e80f2af19c017ab8db6ed 100755 (executable)
@@ -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