Skip to content

Commit

Permalink
Update scsi id boot from slof for ppc64le
Browse files Browse the repository at this point in the history
New device serial will be added which caused the scsi device id
changed from 5 to 7. So we need to updated the scsi boot id from 5 to 7.
  • Loading branch information
openQA web UI committed Apr 24, 2022
1 parent 5b066dd commit ab4b38d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/bootloader_setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use utils;
use version_utils qw(is_microos is_sle_micro is_jeos is_leap is_sle is_tumbleweed is_selfinstall);
use mm_network;
use Utils::Backends;
use Data::Dumper;

use backend::svirt qw(SERIAL_TERMINAL_DEFAULT_DEVICE SERIAL_TERMINAL_DEFAULT_PORT SERIAL_CONSOLE_DEFAULT_DEVICE SERIAL_CONSOLE_DEFAULT_PORT);

Expand Down Expand Up @@ -248,8 +249,22 @@ sub boot_local_disk {
}
if (match_has_tag 'inst-slof') {
diag 'specifying local disk for boot from slof';
type_string_very_slow "devalias";
send_key 'ret';
save_screenshot;
my $slof = 5;
$slof += 1 if get_var('VIRTIO_CONSOLE');
my $file = './serial0';
open (FILE, $file);
my @content = <FILE>;
close FILE;
record_info("result is ", Dumper(@content));
foreach my $line (@content) {
if $line =~ /disk/ {
record_info("result is ", $line);
$slof = substr($line, -1);
}
}
#$slof = $out if get_var('VIRTIO_CONSOLE');
type_string_very_slow "boot /pci\t/sc\t$slof";
save_screenshot;
}
Expand Down

0 comments on commit ab4b38d

Please sign in to comment.