Skip to content

Commit

Permalink
live: Move squashfs-compression def into image-default.yaml
Browse files Browse the repository at this point in the history
This YAML file should have the list of all values parsed by
code.
  • Loading branch information
cgwalters authored and jlebon committed Apr 13, 2022
1 parent b647834 commit 3102e15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-buildextend-live
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if not args.build:
print(f"Targeting build: {args.build}")

image_json = generate_image_json('src/config/image.yaml')
squashfs_compression = 'lz4' if args.fast else image_json.get('squashfs-compression', 'zstd')
squashfs_compression = 'lz4' if args.fast else image_json['squashfs-compression']

srcdir_prefix = "src/config/live/"

Expand Down
3 changes: 3 additions & 0 deletions src/image-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ deploy-via-container: false
# Set this to a target container reference, e.g. ostree-unverified-registry:quay.io/example/os:latest
# container-imgref: ""

# Format used when generating a squashfs image. Can also be e.g. gzip or lz4
squashfs-compression: zstd

# Defaults for VMware OVA, matching historical behavior
vmware-hw-version: 13
vmware-os-type: rhel7_64Guest

0 comments on commit 3102e15

Please sign in to comment.