From cbc6ad81b9977d15f4fae2de547316f3b55c85c9 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Fri, 3 Jan 2025 09:33:35 +0200 Subject: [PATCH] Introduce kairos.pull_datasources cmdline option to force pulling them Fixes https://github.com/kairos-io/kairos/issues/3032 Signed-off-by: Dimitris Karakasilis --- packages/static/kairos-overlay-files/collection.yaml | 2 +- .../kairos-overlay-files/files/system/oem/00_datasource.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/static/kairos-overlay-files/collection.yaml b/packages/static/kairos-overlay-files/collection.yaml index 082eefdc..f9545ee1 100644 --- a/packages/static/kairos-overlay-files/collection.yaml +++ b/packages/static/kairos-overlay-files/collection.yaml @@ -1,4 +1,4 @@ packages: - name: "kairos-overlay-files" category: "static" - version: "1.6.2" + version: "1.6.3" diff --git a/packages/static/kairos-overlay-files/files/system/oem/00_datasource.yaml b/packages/static/kairos-overlay-files/files/system/oem/00_datasource.yaml index 50419d29..84652429 100644 --- a/packages/static/kairos-overlay-files/files/system/oem/00_datasource.yaml +++ b/packages/static/kairos-overlay-files/files/system/oem/00_datasource.yaml @@ -2,7 +2,7 @@ name: "Datasource handling" stages: rootfs.before: - &datasource - if: '[ ! -f /oem/userdata ] && [ ! -f /run/cos/uki_boot_mode ]' + if: '[ ! -f /oem/userdata ] && ([ ! -f /run/cos/uki_boot_mode ] || grep -q "kairos.pull_datasources" /proc/cmdline )' name: "Pull data from provider" datasource: providers: ["cdrom", "gcp", "openstack", "aws", "azure", "hetzner", "packet", "vultr", "digitalocean", "metaldata", "vmware", "config-drive"]