Skip to content

Commit

Permalink
spvm: Format all disks before the test starts
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulofdestiny committed Feb 19, 2020
1 parent 1658190 commit d0a1375
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions lib/bootloader_pvm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,13 @@ sub prepare_pvm_installation {

# Delete partition table before starting installation
select_console('install-shell');
foreach my $disk (split(',', get_var('DISK_DEVICES', 'sda'))) {
script_run("wipefs -a /dev/$disk");
# For cryptlvm+activate existing scenario, create empty enrypted partition
create_encrypted_part("$disk") if get_var('ENCRYPT_ACTIVATE_EXISTING');


my $disks = script_output('lsblk -n -p -l -o NAME -d -e 7,11');
for my $d (split('\n', $disks)) {
script_run("echo 'wipefs -a $d'");
script_run "wipefs -a $d";
create_encrypted_part("$d") if get_var('ENCRYPT_ACTIVATE_EXISTING');
}
# Switch to installation console (ssh or vnc)
select_console('installation');
Expand Down
1 change: 0 additions & 1 deletion variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ DEPENDENCY_RESOLVER_FLAG| boolean | false | Control whether the resolve_dep
DEV_IMAGE | boolean | false | This setting is used to set veriables properly when SDK or Development-Tools are required.
DISABLE_ONLINE_REPOS | boolean | false | Enables `installation/disable_online_repos` test module, relevant for openSUSE only. Test module explicitly disables online repos not to be used during installation.
DISABLE_SLE_UPDATES | boolean | false | Disables online updates for the installation. Is true if `QAM_MINIMAL` is true for SLE.
DISK_DEVICES | string | | Comma separated list of disk devices in the system, e.g. `sda,sdb,vda`. Can be used to format disks as a precondition for the test suite.
DISTRI | string | | Defines distribution. Possible values: `sle`, `opensuse`, `casp`, `caasp`, `microos`.
DOCRUN | boolean | false |
DUALBOOT | boolean | false | Enables dual boot configuration during the installation.
Expand Down

0 comments on commit d0a1375

Please sign in to comment.