Skip to content

Commit

Permalink
Merge pull request #6404 from pdostal/sshd
Browse files Browse the repository at this point in the history
Fix virtIO on some ppc64le machines
  • Loading branch information
mimi1vx committed Dec 17, 2018
2 parents 798bd7a + c296882 commit 721a504
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/console/system_prepare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use base 'consoletest';
use testapi;
use utils;
use Utils::Backends 'use_ssh_serial_console';
use version_utils qw(is_sle);
use serial_terminal 'add_serial_console';
use bootloader_setup qw(change_grub_config grub_mkconfig);
use strict;

Expand All @@ -23,6 +25,18 @@ sub run {

ensure_serialdev_permissions;

# Configure serial consoles for virtio support
# poo#18860 Enable console on hvc0 on SLES < 12-SP2
# poo#44699 Enable console on hvc1 to fix login issues on ppc64le
if (get_var('VIRTIO_CONSOLE')) {
if (is_sle('<12-SP2')) {
add_serial_console('hvc0');
}
elsif (get_var('OFW')) {
add_serial_console('hvc1');
}
}

# bsc#997263 - VMware screen resolution defaults to 800x600
if (check_var('VIRSH_VMM_FAMILY', 'vmware')) {
change_grub_config('=.*', '=1024x768x32', 'GFXMODE=');
Expand Down

0 comments on commit 721a504

Please sign in to comment.