From 803d54c316e312dbeea539749e8b918275ac4e1d Mon Sep 17 00:00:00 2001 From: Itxaka Date: Wed, 25 Sep 2024 09:31:42 +0200 Subject: [PATCH] Scan /oem the last one In case there is bundled configs, plus userdata, the userdata should be read at the end to be able to override any existing configs bundled with the system, as userdata is more dynamic. --- pkg/constants/constants.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index cbf93958..2ff3cd2c 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -170,10 +170,10 @@ func GetGrubModules() []string { func GetConfigScanDirs() []string { return []string{ - "/oem", - "/system/oem", - "/usr/local/cloud-config", "/run/initramfs/live", + "/usr/local/cloud-config", + "/system/oem", + "/oem", "/etc/kairos", // Default system configuration file https://github.com/kairos-io/kairos/issues/2221 "/etc/elemental", // for backwards compatibility }