From ca71b6d90a80228dfa414aa2e828443207ccceb9 Mon Sep 17 00:00:00 2001 From: "lemon.li" Date: Tue, 7 Jan 2025 00:49:02 -0500 Subject: [PATCH] Format disk before installation on pvm --- lib/bootloader_pvm.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/bootloader_pvm.pm b/lib/bootloader_pvm.pm index 1d097cda2a98..40b84ce1165b 100644 --- a/lib/bootloader_pvm.pm +++ b/lib/bootloader_pvm.pm @@ -178,14 +178,17 @@ sub prepare_pvm_installation { if (is_agama) { record_info("Installing", "Please check the expected product is being installed"); assert_screen('agama-installer-live-root', 400); - return; + } + else { + assert_screen("run-yast-ssh", 300); } - assert_screen("run-yast-ssh", 300); - - if (!is_upgrade && !get_var('KEEP_DISKS')) { + # For Agama unattended tests, disks will be formatted by default + if (!is_upgrade && !get_var('KEEP_DISKS') && !get_var('AGAMA_AUTO')) { prepare_disks; } + + return if is_agama; # Switch to installation console (ssh or vnc) select_console('installation'); # We need to start installer only if it's pure ssh installation