We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d8e22 commit 664f723Copy full SHA for 664f723
systemd/crc-needs-tap.sh
@@ -29,16 +29,17 @@ fi
29
30
virt="$(systemd-detect-virt || true)"
31
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
+case "${virt}" in
+ apple)
38
echo "Running with vfkit ($virt) virtualization. Don't need tap0."
39
exit "$EXIT_DONT_NEED_TAP"
40
41
42
-echo "Running with '$virt' virtualization. Need tap0."
43
44
-exit "$EXIT_NEED_TAP"
+ ;;
+ none)
+ echo "Bare metal detected. Don't need tap0."
+ exit "$EXIT_DONT_NEED_TAP"
+ *)
+ echo "Running with '$virt' virtualization. Need tap0."
+ exit "$EXIT_NEED_TAP"
45
+esac
0 commit comments