mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 06:31:26 +00:00
fix blivet so that correct unit for size is selected
Differential Revision: https://phab.qa.fedoraproject.org/D1193
This commit is contained in:
parent
c2b1ea4e8c
commit
5e2a76efde
@ -107,7 +107,7 @@ sub custom_blivet_add_partition {
|
|||||||
# in Anaconda. Should be called when blivet-gui is displayed and free space is selected.
|
# in Anaconda. Should be called when blivet-gui is displayed and free space is selected.
|
||||||
# You can pass device type for partition (needle tagged anaconda_blivet_devicetype_$devicetype should exist),
|
# You can pass device type for partition (needle tagged anaconda_blivet_devicetype_$devicetype should exist),
|
||||||
# whether partitions should be of RAID1 (devicetype is then automatically handled) - you then
|
# whether partitions should be of RAID1 (devicetype is then automatically handled) - you then
|
||||||
# need to have two disks added, size of that partition in MBs, desired filesystem of that partition
|
# need to have two disks added, size of that partition in MiBs, desired filesystem of that partition
|
||||||
# (anaconda_blivet_part_fs_$filesystem should exist) and mountpoint of that partition (e. g. string "/boot").
|
# (anaconda_blivet_part_fs_$filesystem should exist) and mountpoint of that partition (e. g. string "/boot").
|
||||||
my %args = (
|
my %args = (
|
||||||
devicetype => "",
|
devicetype => "",
|
||||||
@ -140,12 +140,11 @@ sub custom_blivet_add_partition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($args{size}) {
|
if ($args{size}) {
|
||||||
type_safely "\t\t";
|
assert_and_click "anaconda_blivet_size_unit";
|
||||||
# if we clicked on "raidlevel" before, we need to type only two tabs,
|
assert_and_click "anaconda_blivet_size_unit_mib";
|
||||||
# otherwise size input box is still one tab away
|
|
||||||
if (!$args{raid1}) {
|
send_key "shift-tab"; # input is one tab back from unit selection listbox
|
||||||
send_key "tab";
|
|
||||||
}
|
|
||||||
# size input can contain whole set of different values, so we can't match it with needle
|
# size input can contain whole set of different values, so we can't match it with needle
|
||||||
type_safely $args{size} . "\n";
|
type_safely $args{size} . "\n";
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 712,
|
||||||
|
"ypos": 312,
|
||||||
|
"width": 21,
|
||||||
|
"height": 14,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_blivet_size_unit"
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 707,
|
||||||
|
"ypos": 284,
|
||||||
|
"width": 25,
|
||||||
|
"height": 14,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_blivet_size_unit_mib"
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
Loading…
Reference in New Issue
Block a user