Skip to content

Commit

Permalink
Support recovery on UKI systems (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Feb 1, 2024
1 parent 9fd7387 commit 07d1372
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name: "Rootfs Layout Settings for UKI"
stages:
rootfs:
- if: '[ -e "/run/cos/uki_boot_mode" ]'
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -f "/run/cos/recovery_mode" ]'
name: "Layout configuration for UKI boot"
environment_file: /run/cos/cos-layout.env
environment:
Expand Down Expand Up @@ -46,6 +46,12 @@ stages:
/var/lib/wicked
/var/log
/var/snap
- if: '[ -e "/run/cos/uki_boot_mode" ] && [ -f "/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
environment:
OVERLAY: "tmpfs:25%"
- if: '[ -e "/run/cos/uki_install_mode" ]'
# omit everything on installer, just set the ephemeral paths
name: "Layout configuration for UKI installer"
Expand Down

0 comments on commit 07d1372

Please sign in to comment.