Skip to content

Commit 664f723

Browse files
committed
systemd: crc-needs-tap.sh: skip self-sufficient/user-mode networking test
Not working before the network is established
1 parent a4d8e22 commit 664f723

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

systemd/crc-needs-tap.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@ fi
2929

3030
virt="$(systemd-detect-virt || true)"
3131

32-
if [[ -z "$virt" ]]; then
33-
echo "ERROR: systemd couldn't detect the virtualization :/" >&2
34-
exit "$EXIT_ERROR"
35-
fi
36-
37-
if [[ "${virt}" == apple ]] ; then
32+
case "${virt}" in
33+
apple)
3834
echo "Running with vfkit ($virt) virtualization. Don't need tap0."
3935
exit "$EXIT_DONT_NEED_TAP"
40-
fi
41-
42-
echo "Running with '$virt' virtualization. Need tap0."
43-
44-
exit "$EXIT_NEED_TAP"
36+
;;
37+
none)
38+
echo "Bare metal detected. Don't need tap0."
39+
exit "$EXIT_DONT_NEED_TAP"
40+
;;
41+
*)
42+
echo "Running with '$virt' virtualization. Need tap0."
43+
exit "$EXIT_NEED_TAP"
44+
;;
45+
esac

0 commit comments

Comments
 (0)