mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-11-29 20:36:00 +00:00
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>
53 lines
1.7 KiB
Perl
53 lines
1.7 KiB
Perl
use base "anacondatest";
|
|
use strict;
|
|
use testapi;
|
|
use anaconda;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Go to INSTALLATION DESTINATION and ensure two disks are selected.
|
|
# Because PARTITIONING starts with 'custom_blivet', this will select blivet-gui.
|
|
select_disks(disks => 2);
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
if (get_var("UEFI")) {
|
|
# if we're running on UEFI, we need esp
|
|
custom_blivet_add_partition(raid1 => 1, size => 1024, mountpoint => '/boot/efi', filesystem => 'efi_filesystem');
|
|
}
|
|
elsif (get_var("OFW")) {
|
|
custom_blivet_add_partition(size => 4, filesystem => 'ppc_prep_boot');
|
|
}
|
|
else {
|
|
# from anaconda-37.12.1 onwards, GPT is default for BIOS
|
|
# installs, so we need biosboot partitions on each disk
|
|
custom_blivet_add_partition(size => 1, filesystem => 'biosboot');
|
|
wait_still_screen 3;
|
|
assert_and_click "anaconda_blivet_disk_2";
|
|
wait_still_screen 3;
|
|
custom_blivet_add_partition(size => 1, filesystem => 'biosboot');
|
|
# go back to disk 1 as custom_blivet_add_partition kinda expects
|
|
# us to be there
|
|
wait_still_screen 3;
|
|
assert_and_click "anaconda_blivet_disk_1";
|
|
wait_still_screen 3;
|
|
assert_and_click "anaconda_blivet_free_space";
|
|
}
|
|
custom_blivet_add_partition(raid1 => 1, size => 1024, mountpoint => '/boot');
|
|
custom_blivet_add_partition(raid1 => 1, mountpoint => '/');
|
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
assert_and_click "anaconda_part_accept_changes";
|
|
|
|
# Anaconda hub
|
|
assert_screen "anaconda_main_hub", 300;
|
|
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|