Skip to content

Commit ec7440e

Browse files
authored
Merge pull request #24927 from waynechen55/wayne/update_serial_console
Ensure correct value from/to SERIALCONSOLE
2 parents 56721a6 + 55c6d15 commit ec7440e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Utils/Backends.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ sub save_serial_console {
6464
my $serialconsole = get_var('SERIALCONSOLE', '');
6565
return if ($serialconsole ne '');
6666
$serialconsole = get_var('SERIALDEV', 'ttyS1');
67+
if ($serialconsole eq 'sshserial') {
68+
record_info('Reset SERIALCONSOLE to ttyS1', 'Because SERIALCONSOLE has no value and SERIALDEV is sshserial');
69+
$serialconsole = 'ttyS1';
70+
}
6771
set_var('SERIALCONSOLE', $serialconsole);
6872
bmwqemu::save_vars();
6973
}

0 commit comments

Comments
 (0)