Skip to content

Commit

Permalink
Set default values for recovery
Browse files Browse the repository at this point in the history
Otherwise we have a broken recovery if something touches the cos-layout
file

Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Feb 22, 2023
1 parent a95e421 commit 5a4ae74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions overlay/files/system/oem/11_persistency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ stages:
/usr/share/pki/trust/anchors
/var/lib/ca-certificates
PERSISTENT_STATE_BIND: "true"
- if: '[ -f "/run/cos/recovery_mode" ]'
name: "Layout configuration for recovery"
environment_file: /run/cos/cos-layout.env
# We omit COS_PERSISTENT here and have no RW_PATHS, or BINDS
# RW_PATHS will be set to the default, which works for recovery
environment:
VOLUMES: "LABEL=COS_OEM:/oem"
OVERLAY: "tmpfs:25%"
- if: '[ -r /run/cos/custom-layout.env ] && [ ! -f "/run/cos/recovery_mode" ] && [ ! -f /run/cos/live_mode ]'
name: "append custom bind and ephemeral mounts to /run/cos/cos-layout.env"
commands:
Expand Down

0 comments on commit 5a4ae74

Please sign in to comment.