Bug#191588: lilo-installer should use the last console arg on the cmdline
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Geert Stappers wrote:
> On Thu, May 01, 2003 at 07:33:51PM -0400, Joe Nahmias wrote:
> > +# Use a serial console if current default console is a serial port.
> > +defconsole=$(sed -e 's/.*console=/console=/') # default console is last listed
> > +if echo "${defconsole}" | grep -q console=ttyS; then
> > + PORT=$(echo "${defconsole}" | sed -e 's%^console=ttyS%%' -e 's%,.*%%')
> > + SPEED=$(echo "${defconsole}" | sed -e 's%^console=ttyS[0-9]\+,%%' -e 's% .*%%')
> > SERIAL="${PORT},${SPEED}"
> > + echo "Configuring lilo to use serial port ttyS${PORT} as the console."
>
> Not any sign of /proc/cmdline anymore, strange...
Good catch! It should be used in the line which sets defconsole, ie.
+defconsole=$(sed -e 's/.*console=/console=/' /proc/cmdline)
<blush> This is what happens when I don't test my patches...
Thanks!
Joe Nahmias, DD wannabe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+smveKl23+OYWEqURAgrmAJsH943nl5LvEQJRZ6cIUeUMTcMNxgCfQAWf
RDcC6MFCtFIVr7+1GMOQod0=
=dkKl
-----END PGP SIGNATURE-----
Reply to: