mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-21 20:51:25 +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:
parent
866a8efa72
commit
784962c96e
15
needles/anaconda/partitioning/select_bootefi-20210219.json
Normal file
15
needles/anaconda/partitioning/select_bootefi-20210219.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 54,
|
||||
"ypos": 407,
|
||||
"width": 110,
|
||||
"height": 18,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"anaconda_part_select_bootefi"
|
||||
]
|
||||
}
|
BIN
needles/anaconda/partitioning/select_bootefi-20210219.png
Normal file
BIN
needles/anaconda/partitioning/select_bootefi-20210219.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
@ -9,7 +9,10 @@ sub use_current_partition {
|
||||
my ($partition, $reformat) = @_;
|
||||
|
||||
# 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
|
||||
send_key_until_needlematch("anaconda_part_mountpoint_selected", "tab", 20);
|
||||
# Type in the mountpoint
|
||||
@ -46,6 +49,8 @@ sub run {
|
||||
use_current_partition("home", 0);
|
||||
# Use the boot partition from the current scheme
|
||||
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
|
||||
# and delete it
|
||||
|
Loading…
Reference in New Issue
Block a user