mirror of
https://github.com/kairos-io/packages.git
synced 2025-07-30 22:57:06 +00:00
Prevent normal recovery layout under uki (#651)
This commit is contained in:
parent
ad5b54f6f3
commit
aa4bc5d20f
@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.25"
|
||||
version: "1.1.26"
|
||||
|
@ -48,7 +48,7 @@ stages:
|
||||
/var/log
|
||||
/var/snap
|
||||
PERSISTENT_STATE_BIND: "true"
|
||||
- if: '[ -f "/run/cos/recovery_mode" ]'
|
||||
- if: '[ -f "/run/cos/recovery_mode" ] && grep -vq "rd.immucore.uki" /proc/cmdline'
|
||||
# omit the persistent partition on recovery mode
|
||||
name: "Layout configuration for recovery mode"
|
||||
environment_file: /run/cos/cos-layout.env
|
||||
|
@ -8,7 +8,7 @@
|
||||
name: "Rootfs Layout Settings for UKI"
|
||||
stages:
|
||||
rootfs:
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -f "/run/cos/recovery_mode" ]'
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -e "/run/cos/recovery_mode" ]'
|
||||
name: "Layout configuration for UKI boot"
|
||||
environment_file: /run/cos/cos-layout.env
|
||||
environment:
|
||||
@ -46,7 +46,7 @@ stages:
|
||||
/var/lib/wicked
|
||||
/var/log
|
||||
/var/snap
|
||||
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ -f "/run/cos/recovery_mode" ]'
|
||||
- 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"
|
||||
environment_file: /run/cos/cos-layout.env
|
||||
|
Loading…
Reference in New Issue
Block a user