Skip to content

Commit 222caa0

Browse files
committedNov 28, 2023
osbuild: human friendly partitioning
Let's define the partitioning for the input mpp yaml here in a more human friendly way using GiB and MiB terms. This yields no change in the generated json.
1 parent aacd4d4 commit 222caa0

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed
 

‎src/coreos.osbuild.mpp.yaml

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11
version: '2'
22
mpp-vars:
33
filename: $filename
4+
disk_size_gb: 10
5+
bios_boot_size_mb: 1
6+
efi_system_size_mb: 127
7+
boot_size_mb: 384
8+
# XXX: Dynamically set this size in the future
9+
root_size_mb: 2048
10+
sector_size: 512
411
mpp-define-image:
512
id: image
6-
#10G
7-
size: '10737418240'
13+
size:
14+
mpp-format-string: "{disk_size_gb * 1024 * 1024 * 1024}"
815
table:
916
uuid: 00000000-0000-4000-a000-000000000001
1017
label: gpt
1118
partitions:
1219
- id: BIOS-BOOT
13-
size: 2048
1420
type: 21686148-6449-6E6F-744E-656564454649
1521
bootable: true
1622
uuid: FAC7F1FB-3E8D-4137-A512-961DE09A5549
23+
size:
24+
mpp-format-int: "{bios_boot_size_mb * 1024 * 1024 / sector_size}"
1725
- id: EFI-SYSTEM
18-
size: 260096
1926
type: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
2027
uuid: 68B2905B-DF3E-4FB3-80FA-49D1E773AA33
28+
size:
29+
mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / sector_size}"
2130
- id: boot
22-
size: 786432
2331
type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
2432
uuid: 61B2905B-DF3E-4FB3-80FA-49D1E773AA32
33+
size:
34+
mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}"
2535
- id: root
26-
# XXX: Dynamically set this size in the future
27-
size: 4194304
2836
type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
2937
uuid: CA7D7CCB-63ED-4C53-861C-1742536059CC
38+
size:
39+
mpp-format-int: "{root_size_mb * 1024 * 1024 / sector_size}"
3040
pipelines:
3141
- name: tree
3242
source-epoch: 1659397331

0 commit comments

Comments
 (0)
Please sign in to comment.