Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine tune user-data.yaml example file #342

Merged
merged 1 commit into from
Jun 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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