As requested by @kparal in
https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/417 ,
this matches the modified test case by creating the EFI system
partition and /boot partition on RAID devices, as well as the
root partition. Also let's make them a bit bigger; if we leave
the value at 512 they actually get created 511MB big (dunno why)
and anaconda complains. Anyway, bigger sizes are prudent these
days.
We also need to create a BIOS boot partition on the second disk
in the BIOS test now. Apparently if /boot is RAID-ed, there has
to be a BIOS boot partition on each disk. This is a bit of an
ugly implementation, oh well.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
From anaconda-37.12.1, anaconda defaults to GPT for all BIOS
installs. So we need to create a BIOS boot partition when doing
a BIOS install. I think all other potential configs (x86_64
UEFI, aarch64 (UEFI), ppc64le (OFW)) are covered under the other
two paths, so just making this `else` should be OK.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
In Fedora 33, we generally no longer include a disk-based swap
partition by default (instead swap-on-ZRAM is used, see
https://fedoraproject.org/wiki/Changes/SwapOnZRAM ). This tweaks
our tests to account for that. In tests that aren't to do with
swap at all, we stop including a swap partition in order to be
closer to the default layout. We replace the old _no_swap blivet
and custom tests with _with_swap tests that, as the name implies,
*explicitly include* a swap partition, and adjust the postinstall
test to check the disk swap partition is there.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This is required because anaconda is still checking for it
even if not mandatory. Already tracked by bug
https://bugzilla.redhat.com/show_bug.cgi?id=1172791
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>