forked from osbuild/otk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: port
centos-9-x86_64-qcow2.yaml
to use partition externals
This commit uses the various externals to generate partition tables in the qcow2 image.
- Loading branch information
Showing
2 changed files
with
87 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
otk.define: | ||
filesystem: | ||
otk.external.otk-gen-partition-table: | ||
modifications: | ||
${filesystem.modifications} | ||
properties: | ||
create: | ||
bios_boot_partition: true | ||
esp_partition: true | ||
esp_partition_size: "200 MiB" | ||
type: gpt | ||
bios: true | ||
default_size: "10 GiB" | ||
uuid: D209C89E-EA5E-4FBD-B161-B461CCE297E0 | ||
partitions: | ||
- name: boot | ||
mountpoint: /boot | ||
label: boot | ||
size: "1 GiB" | ||
type: "xfs" | ||
# XXX: make default if empty | ||
fs_mntops: defaults | ||
# XXX can we derive this? | ||
part_type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
# XXX: yes we use hardcoded uuids | ||
part_uuid: CB07C243-BC44-4717-853E-28852021225B | ||
- name: root | ||
mountpoint: / | ||
label: root | ||
type: "xfs" | ||
# XXX: can/should we be able to leave this empy? | ||
size: "5 GiB" | ||
# XXX: make default if empty | ||
fs_mntops: defaults | ||
# XXX: can we derive this? | ||
part_type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
# XXX: yes we use hardcoded uuids | ||
part_uuid: 6264D520-3FB9-423F-8AB8-7A0A8E3D3562 | ||
# XXX: it would be nicer if the "fs_options" could be part of their | ||
# stages directly without this indirection. | ||
fs_options: | ||
otk.external.otk-make-partition-mounts-devices: | ||
${filesystem} |