Bugzilla – Bug 870514
yast-bootloader configures grub2 to listen to serial on openqa
Last modified: 2014-09-03 02:43:19 UTC
openqa uses console=ttyS0 console=tty to get a copy of the boot log on serial device for logging, but this causes yast to configure grub to listen to serial console. This is incorrect and I reverted the change in Factory - any console= without ttyS should forbid this feature.
michael - you add such support, so reassign to you
Afaik, the last occurrence of console= will be used for opening /dev/console. I know this when using this regular expression .. == type = Builtins.regexpsub(append, "^.*console=([[:alpha:]]+)[[:digit:]]+,*[[:digit:]]*[noe]*[[:digit:]]*.*[[:space:]]*.*$", "\\1") return "" if type != "ttyS" || args.empty? == It should match the last occurrence because greedy match (per default). I did test above case and it works for me .. ? Is my greedy assumption wrong ??
Oh wait .. I did not know console=tty is valid (I tested with console=tty0), should change the match like this. == type = Builtins.regexpsub(append, "^.*console=([[:alpha:]]+)[[:digit:]]*,*[[:digit:]]*[noe]*[[:digit:]]*.*[[:space:]]*.*$", "\\1") return "" if type != "ttyS" || args.empty? == "use [[:digit:]]* not [[:digit:]]+."
was this fixed?
Yes. https://github.com/yast/yast-bootloader/commit/ab39a94c521ecc9a69f19d9cfb75ab717cf94d60