Previously, the support of UEFI has been captured only on the level or architecture definition as a binary boolean value. In reality some of the architectures are able to support legacy, UEFI or hybrid boot. Introduce a new BootType value, defined on the architecture level, which can be set to one of the three boot types mentioned above. The value set on the architecture level can be overridden on the image type level in the image type definition. Add two unexported helper methods to the `imageType`, specifically `getBootType()` which returns the boot type that should be used for the image type and architecture combination. The values set explicitly in the image type or architecture definition should not be used directly. Second added method is `supportsUEFI()`, which returns boolean value representing the fact if the image type supports UEFI boot. Split and define the boot package sets separately for the legacy and UEFI boot. The `PackageSets()` method of the imageType structure is modified to take the boot type into consideration and append appropriate package sets to the "os" package set. Signed-off-by: Tomas Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| distro_test_common | ||
| fedora33 | ||
| rhel8 | ||
| rhel84 | ||
| rhel85 | ||
| rhel90 | ||
| test_distro | ||
| distro.go | ||
| distro_test.go | ||
| osrelease_test.go | ||