From db3649a10b8d8ed230ea62f009401d8192cb82f1 Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Sun, 10 Oct 2021 21:40:57 -0500 Subject: [PATCH] A few comments --- lib/anaconda.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/anaconda.pm b/lib/anaconda.pm index 145a8191..6884cd66 100644 --- a/lib/anaconda.pm +++ b/lib/anaconda.pm @@ -194,12 +194,15 @@ sub custom_add_partition { # the number of tabs needed seems to depend on whether a partition has already been added send_key_until_needlematch("anaconda_custom_part_add", "tab"); send_key "spc"; + + # supply the mountpoint assert_screen "anaconda_custom_mountpoint"; type_safely $args{mountpoint}; send_key "tab"; send_key "tab"; send_key "tab"; assert_screen "anaconda_custom_size"; + # supply the desired size # if size is not provided, leave empty to use the remaining disk space if ($args{size}) { type_safely $args{size}; @@ -223,15 +226,19 @@ sub custom_add_partition { # if no devicetype was specified or devicetype is already selected, do nothing if (($args{devicetype} && !check_screen("anaconda_custom_part_fs_$args{devicetype}_selected", 5))) { + # send 'tab' until the Device Type dropdown is selected send_key_until_needlematch("anaconda_custom_part_devicetype_selected", "tab"); send_key "spc"; + # send 'down' until the correct devicetype is selected send_key_until_needlematch("anaconda_custom_part_devicetype_$args{devicetype}", "down"); send_key "spc"; } # if no filesystem was specified or filesystem is already selected, do nothing if ($args{filesystem} && !check_screen("anaconda_custom_part_fs_$args{filesystem}_selected", 5)) { + # send 'tab' until the File System dropdown is selected send_key_until_needlematch("anaconda_custom_part_fs_selected", "tab"); send_key "spc"; + # send 'down' until the correct filesystem is selected send_key_until_needlematch("anaconda_custom_part_fs_$args{filesystem}_selected", "down"); send_key "spc"; }