]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: ignore tunnel devices automatically added by kernel
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 11:02:15 +0000 (12:02 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 14 Feb 2019 12:35:51 +0000 (13:35 +0100)
Fixes #10934.

(cherry picked from commit e327272d795453f68a4c30ba21eb0e887516cf68)

test/test-execute/exec-privatenetwork-yes.service

index a38d24912fc3f3b32a2e79d4f3a93bf8b162ba82..8f5cbadf0408aa7d37541289a4091c6693c44895 100644 (file)
@@ -2,6 +2,6 @@
 Description=Test for PrivateNetwork
 
 [Service]
-ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|sit0@.*):"'
+ExecStart=/bin/sh -x -c '! ip link | grep -E "^[0-9]+: " | grep -Ev ": (lo|(erspan|gre|gretap|ip_vti|ip6_vti|ip6gre|ip6tnl|sit|tunl)0@.*):"'
 Type=oneshot
 PrivateNetwork=yes