Skip to content

Commit

Permalink
Merge pull request #6320 from SergioAtSUSE/check_for_qcow2_on_SUT_host
Browse files Browse the repository at this point in the history
Check for qcow2 on SUT host when svirt backend
  • Loading branch information
Rodion Iafarov committed Nov 30, 2018
2 parents 300500c + 915ae30 commit 3f24566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bootloader_setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ sub zkvm_add_disk {
my $basename = basename($hdd);
my $basedir = svirt_host_basedir();
my $hdd_dir = "$basedir/openqa/share/factory/hdd";
chomp(my $hdd_path = `find $hdd_dir -name $basename | head -n1`);
my $hdd_path = $svirt->get_cmd_output("find $hdd_dir -name $basename | head -n1 | tr -d '\n'");
die "Unable to find image $basename in $hdd_dir" unless $hdd_path;
diag("HDD path found: $hdd_path");
if (get_var('PATCHED_SYSTEM')) {
diag('in patched systems just load the patched image');
Expand Down

0 comments on commit 3f24566

Please sign in to comment.