[Bug 766456] New: grub2 lacks entries for serial console
https://bugzilla.novell.com/show_bug.cgi?id=766456 https://bugzilla.novell.com/show_bug.cgi?id=766456#c0 Summary: grub2 lacks entries for serial console Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: ohering@suse.com QAContact: jsrain@suse.com Found By: Outsourced Testing Blocker: --- bug #757895 comment #3 lacks an entry for serial console, this makes the system unaccessible. installation was started with this cmdline: title install Factory kernel /install/Factory/linux quiet sysrq=yes panic=9 start_shell ssh=0 sshpassword=root nosshkey vnc=1 vncpassword=password linemode=1 start_shell console=ttyS0,57600 install=http://widehat.opensuse.org/factory/repo/oss initrd /install/Factory/initrd will attach yast logs shortly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c1
--- Comment #1 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c2
--- Comment #2 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c3
--- Comment #3 from Michael Chang
From your log grub2 console type is not set to serial (still run as text console) so above test is to make sure the root cause and perhaps the fix is when encounter console= in command line, serial console has to enabled for grub2 by it's yast2 module.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c4
--- Comment #4 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c5
--- Comment #5 from Michael Chang
I'm not sure what the syntax is for grub2 to get similar results for these entries in menu.lst:
serial --unit=0 --speed=57600 terminal --timeout=10 serial console
In general you just have to edit /etc/default/grub and invoke grub2-mkconfig to get things done . GRUB_TERMINAL=serial GRUB_SERIAL_COMMAND="serial --unit=0 --speed=57600" But you could try edit /boot/grub2/grub.cfg directly with following lines to have a quick run serial --unit=0 --speed=57600 terminal_input serial terminal_output serial (Seems not support timeout .. IMHO). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c6
--- Comment #6 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c7
--- Comment #7 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c8
--- Comment #8 from Olaf Hering
I looked at this again with 12.2 RC2. In the yast screen I added '--unit=0 --speed=57600' in the serial entriy field.
That user interface is broken. It should be two pull down menus. One with ttyS0/1 which sets --unit and another pulldown menu one for speed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c9
--- Comment #9 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c10
--- Comment #10 from Olaf Hering
I looked at this again with 12.2 RC2. In the yast screen I added '--unit=0 --speed=57600' in the serial entriy field. the result is a broken /etc/default/grub:
.... # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" GRUB_SERIAL_COMMAND=""--unit=0 --speed=57600"GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png" GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt ...
Even if I add also 'serial' to the entry field, the config file is still broken. stein-schneider:~ # grep -wn serial /mnt/boot/grub2/grub.cfg 51:serial --unit=0 --speed=115200GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png 52:terminal_input serial 53:terminal_output serial stein-schneider:~ # tail /mnt/etc/default/grub # you can see them in real GRUB with the command `vbeinfo' GRUB_GFXMODE=auto # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY=true # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" GRUB_SERIAL_COMMAND=""serial --unit=0 --speed=115200"GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png" GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt It leads to this error: stein-schneider:~ # cat /mnt/var/log/YaST2/y2log_bootloader /etc/default/grub: line 32: --unit=0: command not found stein-schneider:~ # sed -n 32p /mnt/etc/default/grub GRUB_SERIAL_COMMAND=""serial --unit=0 --speed=115200"GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png" stein-schneider:~ # -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c11
--- Comment #11 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c12
--- Comment #12 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c13
--- Comment #13 from Olaf Hering
(Meanwhile, you could try without "..." to your serial arguments ?)
I did not add any extra double quotes, there must be some other bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c14
--- Comment #14 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c15
--- Comment #15 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c16
--- Comment #16 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=766456
https://bugzilla.novell.com/show_bug.cgi?id=766456#c17
Torsten Duwe
participants (1)
-
bugzilla_noreply@novell.com