handle kernel command lines like console=ttyS0,115200n8

This commit is contained in:
Michael Hudson-Doyle 2020-04-11 21:19:39 +12:00
parent ada4c7b14d
commit 96f9568122
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class Subiquity(Application):
tty = '/dev/tty1'
for work in self.kernel_cmdline:
if work.startswith('console='):
tty = '/dev/' + work[len('console='):]
tty = '/dev/' + work[len('console='):].split(',')[0]
return tty
def load_autoinstall_config(self):