From: Frantisek Sumsal Date: Fri, 26 Aug 2022 16:45:38 +0000 (+0200) Subject: test: fix delv trust anchors location on Ubuntu X-Git-Tag: v252-rc1~302^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa17101b8efed0e2deeffe5ecd67c993f639debb;p=thirdparty%2Fsystemd.git 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 --- diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh index a14ee228417..fbe37342dd7 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