1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

Fix btrfs_preserve_home for UEFI

When running this test on UEFI, we need to preserve /boot/efi.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-02-19 13:58:11 -08:00
parent 866a8efa72
commit 784962c96e
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 54,
"ypos": 407,
"width": 110,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_part_select_bootefi"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -9,7 +9,10 @@ sub use_current_partition {
my ($partition, $reformat) = @_; my ($partition, $reformat) = @_;
# Select the partition # Select the partition
assert_and_click "anaconda_part_select_$partition"; my $match = $partition;
# needle names can't have / in them
$match =~ s,/,,;
assert_and_click "anaconda_part_select_$match";
# Select the mountpoint field # Select the mountpoint field
send_key_until_needlematch("anaconda_part_mountpoint_selected", "tab", 20); send_key_until_needlematch("anaconda_part_mountpoint_selected", "tab", 20);
# Type in the mountpoint # Type in the mountpoint
@ -46,6 +49,8 @@ sub run {
use_current_partition("home", 0); use_current_partition("home", 0);
# Use the boot partition from the current scheme # Use the boot partition from the current scheme
use_current_partition("boot", 1); use_current_partition("boot", 1);
# Use /boot/efi from current scheme, if we're EFI
use_current_partition("boot/efi", 1) if (get_var "UEFI");
# Select the root partition from the current scheme # Select the root partition from the current scheme
# and delete it # and delete it