Skip to content

Commit

Permalink
Take into account uki mode for rootfs stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Mar 13, 2023
1 parent e320462 commit afb263e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 42 deletions.
2 changes: 1 addition & 1 deletion overlay/files/system/oem/00_rootfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stages:
providers: ["aws", "gcp", "openstack", "cdrom"]
path: "/oem"
rootfs:
- if: '[ ! -f "/run/cos/recovery_mode" ]'
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ ! -e "/run/cos/uki_mode" ]'
name: "Layout configuration"
environment_file: /run/cos/cos-layout.env
environment:
Expand Down
4 changes: 2 additions & 2 deletions overlay/files/system/oem/10_accounting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ stages:
homedir: "/home/kairos"
groups:
- "admin"
- name: "Set user password if running in live"
if: "[ -e /run/cos/live_mode ]"
- name: "Set user password if running in live or uki"
if: "[ -e /run/cos/live_mode ] || [ -e /run/cos/uki_mode ]"
users:
kairos:
passwd: "kairos"
Expand Down
2 changes: 1 addition & 1 deletion overlay/files/system/oem/11_persistency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stages:
/usr/share/pki/trust
/usr/share/pki/trust/anchors
/var/lib/ca-certificates
- if: '([ -e "/run/cos/active_mode" ] || [ -e "/run/cos/passive_mode" ]) && [ ! -e "/run/cos/uki_mode" ]'
- if: '[ ! -f "/run/cos/recovery_mode" ] && [ ! -e "/run/cos/uki_mode" ]'
name: "Layout configuration for active/passive"
environment_file: /run/cos/cos-layout.env
environment:
Expand Down
38 changes: 0 additions & 38 deletions overlay/files/system/oem/32_uki.yaml

This file was deleted.

0 comments on commit afb263e

Please sign in to comment.