Skip to content

Commit

Permalink
Fine tune user-data.yaml example file
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jun 29, 2021
1 parent 0d258d4 commit ee58fa6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions images/user-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,18 @@ stages:
# It will partition a device including the given filesystem label or part label (filesystem label matches first)
device:
label: COS_RECOVERY
# Only last partition can be expanded
# expand_partition:
# size: 4096
add_partitions:
- fsLabel: COS_STATE
size: 8192
# 15Gb for COS_STATE, so the disk should be bigger than 17Gb
size: 15360
pLabel: state
- fsLabel: COS_PERSISTENT
# unset size or 0 size means all available space
# size: 0
# default filesystem is ext2 when omitted
# filesystem: ext4
pLabel: persistent
network:
- if: '[ -z "$(blkid -L COS_SYSTEM || true)" ]'
- if: '[ -f "/run/cos/recovery_mode" ]'
name: "Deploy cos-system"
commands:
commands:
- |
cos-deploy --docker-image quay.io/costoolkit/releases-opensuse:cos-system-0.5.3-3 && \
cos-deploy --docker-image quay.io/costoolkit/releases-opensuse:cos-system-0.5.5 && \
shutdown -r +1

0 comments on commit ee58fa6

Please sign in to comment.