Ignore error return code if no virtualization environment detected.

OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=76
This commit is contained in:
Ignaz Forster 2021-07-21 14:33:30 +00:00 committed by Git OBS Bridge
parent 60460da4e0
commit 76587cceda

View File

@ -24,7 +24,7 @@ EOF
fi
if [ -z "${PLATFORM_ID}" ]; then
platform="$(systemd-detect-virt)"
platform="$(systemd-detect-virt || true)"
case "${platform}" in
*vmware*) platform="vmware" ;;
*oracle*) platform="virtualbox" ;;