diff --git a/packages/static/kairos-overlay-files/collection.yaml b/packages/static/kairos-overlay-files/collection.yaml index 85d4c77..ce39abc 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.0.12" + version: "1.0.13" diff --git a/packages/static/kairos-overlay-files/files/system/oem/00_rootfs.yaml b/packages/static/kairos-overlay-files/files/system/oem/00_rootfs.yaml index 2d15b38..44118a0 100644 --- a/packages/static/kairos-overlay-files/files/system/oem/00_rootfs.yaml +++ b/packages/static/kairos-overlay-files/files/system/oem/00_rootfs.yaml @@ -12,7 +12,7 @@ stages: if: '[ ! -e "/sbin/systemctl" ] && [ ! -e "/usr/bin/systemctl" ] && [ ! -e "/usr/sbin/systemctl" ] && [ ! -e "/usr/bin/systemctl" ]' commands: - mount bpffs -o rw,nosuid,nodev,noexec,relatime,mode=700 /sys/fs/bpf -t bpf - - if: '[ -e "/run/cos/active_mode" ] || [ -e "/run/cos/passive_mode" ]' + - if: '[ ! -f "/run/cos/recovery_mode" ] && [ ! -e "/run/cos/uki_boot_mode" ] && [ ! -e "/run/cos/uki_install_mode" ]' name: "Layout configuration for active/passive mode" environment_file: /run/cos/cos-layout.env environment: @@ -51,7 +51,7 @@ stages: /usr/share/pki/trust/anchors /var/lib/ca-certificates PERSISTENT_STATE_BIND: "true" - - if: '[ -e "/run/cos/recovery_mode" ]' + - if: '[ -f "/run/cos/recovery_mode" ]' # omit the persistent partition on recovery mode name: "Layout configuration for recovery mode" environment_file: /run/cos/cos-layout.env @@ -94,7 +94,7 @@ stages: /var/lib/ca-certificates PERSISTENT_STATE_BIND: "true" rootfs.after: - - if: '[ -r /run/cos/custom-layout.env ] && [ ! -f "/run/cos/recovery_mode" ] && [ ! -f /run/cos/live_mode ] && [ ! -f /run/cos/uki_install_mode]' + - if: '[ -r /run/cos/custom-layout.env ] && [ ! -f "/run/cos/recovery_mode" ] && [ ! -f /run/cos/live_mode ]' name: "add custom bind and ephemeral mounts to /run/cos/cos-layout.env" commands: - | @@ -110,6 +110,14 @@ stages: echo RW_PATHS=\"${RW_PATHS}\" >> /run/cos/cos-layout.env echo "# persistent state paths with user ephemeral mounts" >> /run/cos/cos-layout.env echo PERSISTENT_STATE_PATHS=\"${PERSISTENT_STATE_PATHS}\" >> /run/cos/cos-layout.env + - if: '[ ! -f /run/cos/recovery_mode ] && [ ! -f /run/cos/live_mode ]' + name: "Grow persistent" + layout: + device: + label: COS_PERSISTENT + expand_partition: + # Size 0 is required to specify all remaining space + size: 0 initramfs: - name: "Create journalctl /var/log/journal dir" if: '[ -e "/sbin/systemctl" ] || [ -e "/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]' diff --git a/packages/static/kairos-overlay-files/files/system/oem/25_autologin.yaml b/packages/static/kairos-overlay-files/files/system/oem/25_autologin.yaml index fc53c5e..2717027 100644 --- a/packages/static/kairos-overlay-files/files/system/oem/25_autologin.yaml +++ b/packages/static/kairos-overlay-files/files/system/oem/25_autologin.yaml @@ -1,8 +1,7 @@ name: "Root autologin" stages: initramfs: - - name: "Autologin for live mode" - if: | + - if: | [ ! $(cat /proc/cmdline | grep -q "interactive-install") ] && \ [ -f /run/cos/live_mode ] && \ ( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] ) @@ -19,18 +18,3 @@ stages: ExecStart= ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM permissions: 0644 - - name: "Autologin for UKI install medium" - if: '[ -f "/run/cos/uki_install_mode" ] && ( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )' - files: - - path: /etc/systemd/system/serial-getty@ttyS0.service.d/override.conf - content: | - [Service] - ExecStart= - ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM - permissions: 0644 - - path: /etc/systemd/system/getty@tty1.service.d/override.conf - content: | - [Service] - ExecStart= - ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM - permissions: 0644 \ No newline at end of file