mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-17 15:40:44 +00:00
Run reset on uki autoreset (#762)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.31"
|
||||
version: "1.1.32"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
name: "Rootfs Layout Settings for UKI"
|
||||
stages:
|
||||
rootfs:
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -e "/run/cos/recovery_mode" ]'
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -e "/run/cos/recovery_mode" ] && [ ! -e "/run/cos/autoreset_mode" ]'
|
||||
name: "Layout configuration for UKI boot"
|
||||
environment_file: /run/cos/cos-layout.env
|
||||
environment:
|
||||
@@ -46,9 +46,9 @@ stages:
|
||||
/var/lib/wicked
|
||||
/var/log
|
||||
/var/snap
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ -e "/run/cos/recovery_mode" ]'
|
||||
# omit the persistent partition on recovery mode
|
||||
name: "Layout configuration for recovery mode on UKI"
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && ([ -e "/run/cos/recovery_mode" ] || [ -e "/run/cos/autoreset_mode" ])'
|
||||
# omit the persistent partition on recovery mode/autoreset
|
||||
name: "Layout configuration for recovery/autoreset mode on UKI"
|
||||
environment_file: /run/cos/cos-layout.env
|
||||
environment:
|
||||
OVERLAY: "tmpfs:25%"
|
||||
|
@@ -3,7 +3,7 @@ stages:
|
||||
initramfs:
|
||||
- name: "Starts kairos-reset for systemd based systems"
|
||||
if: |
|
||||
grep -q "kairos.reset" /proc/cmdline && \
|
||||
(grep -q "kairos.reset" /proc/cmdline || [ -f /run/cos/autoreset_mode ]) && \
|
||||
( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )
|
||||
commands:
|
||||
- systemctl disable getty@tty1
|
||||
|
Reference in New Issue
Block a user