Add #cloud-config header to all overlay files

because `kairos-agent config` command ignores those files because of the
missing header. That command is supposed to print all the config that is
taken into account from kairos-agent and immucore and all.

Currently it ignore those files the same way it ignores them when
running `kairos-agent manual-install` et al. Adding the header will make
the kairos-agent respect those files, essentially with no effect since
none of these files set any installation options.
The only useful result will be that `kairos-agent config` will print the
full config making it easier for the user to see the full merged yaml
that results from all the available config files.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis 2024-09-19 11:28:44 +03:00
parent 5afab81070
commit cb04cb65d5
No known key found for this signature in database
GPG Key ID: 286DCAFD2C97DDE3
27 changed files with 56 additions and 3 deletions

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Datasource handling"
stages:
rootfs.before:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Fix home directory permissions (kairos issue #2797)"
stages:
network.after:

View File

@ -1,3 +1,5 @@
# cloud-config
# Rootfs Kairos OEM configuration file
#
# This file is part of Kairos and will get reset during upgrades.

View File

@ -1,3 +1,5 @@
# cloud-config
# Rootfs Kairos OEM configuration file
#
# This file is part of Kairos and will get reset during upgrades.
@ -58,4 +60,4 @@ stages:
environment_file: /run/cos/cos-layout.env
environment:
RW_PATHS: "/var /etc /srv /home"
OVERLAY: "tmpfs:25%"
OVERLAY: "tmpfs:25%"

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Start agent"
stages:
boot:

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Notify Kairos Plugins of Elemental Events"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Fonts fix for ubuntu"
stages:
initramfs.after:

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Default network configuration"
stages:
rootfs.before:

View File

@ -1,3 +1,5 @@
# cloud-config
# Rootfs Kairos OEM configuration file
#
# This file is part of Kairos and will get reset during upgrades.

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Create openrc services"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
# cloud-config
# Rootfs Kairos OEM configuration file
#
# This file is part of Kairos and will get reset during upgrades.

View File

@ -1,3 +1,5 @@
# cloud-config
name: "Default user, permissions and serial login"
stages:
initramfs:

View File

@ -1,4 +1,5 @@
#cloud-config
name: "RPI configs"
stages:
initramfs.before:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Nvidia jetson specific files"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Kcrypt"
stages:
after-upgrade:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "c3os sentinel migration"
stages:
fs.after:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Root autologin"
stages:
initramfs:
@ -34,4 +36,4 @@ stages:
- sed -i -e 's/tty1.*//g' /etc/inittab
- sed -i -e 's/ttyS0.*//g' /etc/inittab
- echo "tty1::respawn:/sbin/agetty --autologin root -i --noclear tty1" >> /etc/inittab
- echo "ttyS0::respawn:/sbin/agetty --autologin root -i --noclear ttyS0" >> /etc/inittab
- echo "ttyS0::respawn:/sbin/agetty --autologin root -i --noclear ttyS0" >> /etc/inittab

View File

@ -1,3 +1,5 @@
#cloud-config
name: "SELinux"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Enable QEMU tools"
stages:
boot:

View File

@ -1,3 +1,5 @@
#cloud-config
stages:
initramfs.before:
- name: "Blacklist bpfilter on Alpine ( bug: https://github.com/kairos-io/kairos/issues/277 )"

View File

@ -1,3 +1,5 @@
#cloud-config
stages:
boot.before:
- name: "Setup higher limit for open files"

View File

@ -1,3 +1,5 @@
#cloud-config
stages:
initramfs.before:
# For debian based distributions, /etc/hosts is present but empty. This is because the file

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Profile extensions"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Start recovery on tty1"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Start reset on tty1"
stages:
initramfs:

View File

@ -1,3 +1,5 @@
#cloud-config
name: "Start installer on tty1"
stages:
initramfs:
@ -56,4 +58,4 @@ stages:
([ -f /run/cos/live_mode ] || [ -f /run/cos/uki_install_mode ]) && \
( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )
commands:
- systemctl start kairos-webui
- systemctl start kairos-webui

View File

@ -1,3 +1,5 @@
#cloud-config
name: "sysext"
stages:
fs.after: