]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(test): remove leftover link file from server rootfs
authorBeniamino Galvani <bgalvani@redhat.com>
Tue, 7 Feb 2023 12:49:15 +0000 (13:49 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 13 Feb 2023 07:53:39 +0000 (08:53 +0100)
01-client.link must be removed, otherwise it conflicts with 01-server.link that
sets a different naming policy.

test/TEST-60-BONDBRIDGEVLANIFCFG/test.sh

index 0a045f1f762927f2d265cbe857061aa00962e036..ac33ba9f8bcff3cdb030cb6b859e9b2093c3a3b0 100755 (executable)
@@ -373,6 +373,7 @@ test_setup() {
         export initdir="$TESTDIR"/overlay
         # shellcheck disable=SC1090
         . "$basedir"/dracut-init.sh
+        rm "$initdir"/etc/systemd/network/01-client.link
         inst_simple ./server.link /etc/systemd/network/01-server.link
         inst_hook pre-mount 99 ./wait-if-server.sh
     )