From 76587cceda052cf56796aa2466cfaad2c13da03958dce214f93d3046cdfa2e40 Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Wed, 21 Jul 2021 14:33:30 +0000 Subject: [PATCH 1/2] 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 --- ignition-suse-generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ;; From 6484b10ac45340f23dc7b6d1eea3259e03435b5ac5df0214566f6ff85d4fef24 Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Wed, 21 Jul 2021 14:36:59 +0000 Subject: [PATCH 2/2] 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. OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=77 --- ignition.changes | 9 +++++++++ 1 file changed, 9 insertions(+) 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