diff --git a/ignition-suse-generator b/ignition-suse-generator index cf89f83..360a114 100644 --- a/ignition-suse-generator +++ b/ignition-suse-generator @@ -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" ;; diff --git a/ignition.changes b/ignition.changes index de40eaa..4b0baa0 100644 --- a/ignition.changes +++ b/ignition.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Jul 21 14:33:48 UTC 2021 - Ignaz Forster + +- Ignore error return code if no virtualization environment + detected. [bsc#1188479] + This makes it possible to use Ignition also on bare metal (e.g. + when dumping images directly to disk) without adding a + ignition.platform.id parameter. + ------------------------------------------------------------------- Thu Jul 8 10:47:50 UTC 2021 - Ignaz Forster