debian-forge-composer/internal/distro
Tomas Hozza 49ed70a565 rhel85: introduce BootType and use it for arch and image definitions
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>
2021-08-02 19:05:09 +02:00
..
distro_test_common rhel85: depsolve blueprint packages separately 2021-07-24 15:54:00 +02:00
fedora33 distro: test filesystem errors 2021-07-28 21:44:03 +01:00
rhel8 client: test supported and unsupported mountpoints 2021-07-28 21:44:03 +01:00
rhel84 distro: test filesystem errors 2021-07-28 21:44:03 +01:00
rhel85 rhel85: introduce BootType and use it for arch and image definitions 2021-08-02 19:05:09 +02:00
rhel90 distro: test filesystem errors 2021-07-28 21:44:03 +01:00
test_distro client: test supported and unsupported mountpoints 2021-07-28 21:44:03 +01:00
distro.go distro: method for detecting manifest version 2021-06-29 09:33:05 +01:00
distro_test.go distro: test manifest version detection 2021-06-29 09:33:05 +01:00
osrelease_test.go distro: add DetectHost 2019-11-10 17:23:14 +01:00