diff --git a/pkg/features/embedded/cloud-config-essentials/system/oem/07_live.yaml b/pkg/features/embedded/cloud-config-essentials/system/oem/07_live.yaml index 710c3af7778..0f49c72ab46 100644 --- a/pkg/features/embedded/cloud-config-essentials/system/oem/07_live.yaml +++ b/pkg/features/embedded/cloud-config-essentials/system/oem/07_live.yaml @@ -9,7 +9,7 @@ name: "LiveCD Detection" stages: rootfs.before: - if: | - cat /proc/cmdline | grep -q "CDLABEL" || cat /proc/cmdline | grep -q "elemental.disable" + cat /proc/cmdline | grep -q "CDLABEL" || cat /proc/cmdline | grep -q "elemental.disable" || cat /proc/cmdline | grep -q "rd.cos.disable" name: "Identify live mode" files: - path: /run/elemental/live_mode @@ -17,6 +17,11 @@ stages: permissions: 0600 owner: 0 group: 0 + - path: /run/cos/live_mode + content: "1" + permissions: 0600 + owner: 0 + group: 0 - if: '[ -f "/run/elemental/live_mode" ]' name: "Include cloud init files from the ISO root" files: