1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 10:23:09 +00:00

ppc64le changes in disk_custom_blivet_resize_lvm.pm

Required because ppc64le has a PReP partition
before boot partition.
PReP partition must not be changed by this script.

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2020-12-05 07:22:12 +01:00
parent 18e15f983a
commit e9c15a502a
6 changed files with 41 additions and 5 deletions

View File

@ -78,7 +78,7 @@ for user in ("jack", "jim"):
testliterals.append(f"user_confirm_{user}")
# partitioning stuff, there's a bunch of this, all in anaconda.pm
# multiple things use this
for part in ("swap", "root", "efi", "boot"):
for part in ("swap", "root", "efi", "boot", "vda2"):
testliterals.append(f"anaconda_part_select_{part}")
testliterals.append(f"anaconda_blivet_part_inactive_{part}")
# select_disks

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 105,
"xpos": 244,
"width": 82,
"type": "match",
"height": 22
}
],
"properties": [],
"tags": [
"anaconda_blivet_disk_logical_view"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 606,
"ypos": 165,
"width": 27,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_blivet_part_inactive_vda2"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -11,6 +11,7 @@ sub activate {
# times to make sure the proper partition gets activated.
my $partition = shift;
my $count = 12;
assert_screen 'anaconda_blivet_disk_logical_view';
while (check_screen "anaconda_blivet_part_inactive_$partition" and $count > 0) {
assert_and_click "anaconda_blivet_part_inactive_$partition";
sleep 5;
@ -31,9 +32,9 @@ sub run {
# a previous Linux installation and prepare the disk for new installation
# which will be then followed through.
# Partitioning starts out of the LVM on VD1. We will use it to recreate
# the "/boot" partition in there. In UEFI, we will need to deal with the /boot/efi
# partition first.
# Partitioning starts out of the LVM on VD1 or VD2 (for ppc64le)
# We will use it to recreate the "/boot" partition in there.
# In UEFI, we will need to deal with the /boot/efi partition first.
if (get_var("UEFI") == 1) {
#The efi partition should be already activated. So reformat it and remount.
custom_blivet_format_partition(type => 'efi_filesystem', label => 'efiboot', mountpoint => '/boot/efi');
@ -41,7 +42,12 @@ sub run {
}
# Select the boot partition and reformat it and remount.
activate("boot");
my $devboot = 'boot';
if (get_var('OFW')) {
# for PowerPC vda1 is PreP partition.
$devboot = 'vda2';
}
activate($devboot);
# Boot is the only ext4 partition on that scheme, so we will use that to make a needle.
wait_still_screen 5;
custom_blivet_format_partition(type => 'ext4', label => 'boot', mountpoint => '/boot');