-
Notifications
You must be signed in to change notification settings - Fork 184
Use DPS UUIDs for root and boot partitions #4380
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,11 +66,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: B921B045-1DF0-41C3-AF44-4C6F280D3FAE | ||
| - id: image4k | ||
| sector_size: | ||
| mpp-format-int: "{four_k_sector_size}" | ||
|
|
@@ -89,11 +89,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: B921B045-1DF0-41C3-AF44-4C6F280D3FAE | ||
|
Comment on lines
91
to
+96
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please apply the same variable-based approach for partition type UUIDs in the - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_aarch64}' |
||
| pipelines: | ||
| # If installing from container then let's pull the container file into a pipeline | ||
| - name: oci-archive | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,11 +67,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{reserved_part_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: C31C45E6-3F39-412E-80FB-4809C4980599 | ||
|
Comment on lines
69
to
+74
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability and maintainability, consider defining these partition type UUIDs as variables in - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_ppc64le}' |
||
| - id: image4k | ||
| sector_size: | ||
| mpp-format-int: "{four_k_sector_size}" | ||
|
|
@@ -91,11 +91,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{reserved_part_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: C31C45E6-3F39-412E-80FB-4809C4980599 | ||
|
Comment on lines
93
to
+98
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please apply the same variable-based approach for partition type UUIDs in the - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_ppc64le}' |
||
| pipelines: | ||
| # If installing from container then let's pull the container file into a pipeline | ||
| - name: oci-archive | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,11 +66,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 72EC70A6-CF74-40E6-BD49-4BDA08E8F224 | ||
|
Comment on lines
68
to
+73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability and maintainability, consider defining these partition type UUIDs as variables in - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_riscv64}' |
||
| - id: image4k | ||
| sector_size: | ||
| mpp-format-int: "{four_k_sector_size}" | ||
|
|
@@ -89,11 +89,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 72EC70A6-CF74-40E6-BD49-4BDA08E8F224 | ||
|
Comment on lines
91
to
+96
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please apply the same variable-based approach for partition type UUIDs in the - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_riscv64}' |
||
| pipelines: | ||
| # If installing from container then let's pull the container file into a pipeline | ||
| - name: oci-archive | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,12 +62,12 @@ mpp-define-images: | |
| label: gpt | ||
| partitions: | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}" | ||
| partnum: 3 | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 5EEAD9A9-FE09-4A1E-A1D7-520D00531306 | ||
| partnum: 4 | ||
|
Comment on lines
64
to
71
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability and maintainability, consider defining these partition type UUIDs as variables in - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}"
partnum: 3
- name: root
type:
mpp-format-string: '{dps_root_partition_type_s390x}'
partnum: 4 |
||
| - id: image4k | ||
| sector_size: | ||
|
|
@@ -79,12 +79,12 @@ mpp-define-images: | |
| label: gpt | ||
| partitions: | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| partnum: 3 | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 5EEAD9A9-FE09-4A1E-A1D7-520D00531306 | ||
| partnum: 4 | ||
|
Comment on lines
81
to
88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please apply the same variable-based approach for partition type UUIDs in the - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}"
partnum: 3
- name: root
type:
mpp-format-string: '{dps_root_partition_type_s390x}'
partnum: 4 |
||
| pipelines: | ||
| # If installing from container then let's pull the container file into a pipeline | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,11 +67,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709 | ||
|
Comment on lines
69
to
+74
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability and maintainability, consider defining these partition type UUIDs as variables in - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_x86_64}' |
||
| - id: image4k | ||
| sector_size: | ||
| mpp-format-int: "{four_k_sector_size}" | ||
|
|
@@ -91,11 +91,11 @@ mpp-define-images: | |
| size: | ||
| mpp-format-int: "{efi_system_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: boot | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: BC13C2FF-59E6-4262-A352-B275FD6F7172 | ||
| size: | ||
| mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}" | ||
| - name: root | ||
| type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
| type: 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709 | ||
|
Comment on lines
93
to
+98
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please apply the same variable-based approach for partition type UUIDs in the - name: boot
type:
mpp-format-string: '{dps_boot_partition_type}'
size:
mpp-format-int: "{boot_size_mb * 1024 * 1024 / four_k_sector_size}"
- name: root
type:
mpp-format-string: '{dps_root_partition_type_x86_64}' |
||
| pipelines: | ||
| # If installing from container then let's pull the container file into a pipeline | ||
| - name: oci-archive | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve readability and maintainability, consider defining these partition type UUIDs as variables in
mpp-varsand referencing them here. This avoids using magic strings and makes their purpose clear. For example, you could adddps_boot_partition_typeanddps_root_partition_type_aarch64tompp-vars.