Bug 1053559

Summary: Yast bootloader kernel section crashes with valid GRUB_TERMINAL option
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User AsH2lXbLuE <forgotten_AsH2lXbLuE>
Component: YaST2Assignee: Michal Filka <mfilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P2 - High CC: heiko.rommel, jreidinger, maint-coord, mschnitzer
Version: Leap 42.3   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.3   
URL: https://trello.com/c/kHqVGyXv
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Forgotten User AsH2lXbLuE 2017-08-13 13:18:55 UTC
Created attachment 736397 [details]
y2log

If valid option GRUB_TERMINAL = "console serial" is set in /etc/default/grub, the yast bootloader text console  kernel tab crashes.

To reproduce:
Set GRUB_TERMINAL="console serial" in /etc/default/grub
Run the "yast bootloader" text console
Switch to the "Kernel Parameters" tab.

Yast crashes with the following error:
Internal error. Please report a bug report with logs.
Run save_y2logs to get complete logs.
Details: unknown GRUB_TERMINAL option "console serial"
Caller:  /usr/lib64/ruby/gems/2.1.0/gems/cfa_grub2-0.6.2/lib/cfa/grub2/default.rb:111:in `terminal'
Comment 1 Andreas Stieger 2017-08-13 14:57:39 UTC
*** Bug 1053560 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Stieger 2017-08-13 14:57:47 UTC
*** Bug 1053561 has been marked as a duplicate of this bug. ***
Comment 3 Andreas Stieger 2017-08-13 14:57:54 UTC
*** Bug 1053562 has been marked as a duplicate of this bug. ***
Comment 4 Josef Reidinger 2018-04-24 11:51:24 UTC
Thanks for report. For Leap15 and TW we currently add screen showing that we cannot handle it for now. I keep bug open as for future we need to improve console handling as grub2 allows even more various terminal settings and we should handle it.

PR with popup https://github.com/yast/yast-bootloader/pull/493
Comment 5 Josef Reidinger 2018-07-18 06:03:23 UTC
*** Bug 1100842 has been marked as a duplicate of this bug. ***
Comment 6 Swamp Workflow Management 2018-08-16 09:10:05 UTC
This is an autogenerated message for OBS integration:
This bug (1053559) was mentioned in
https://build.opensuse.org/request/show/629504 Factory / rubygem-cfa_grub2
Comment 7 Swamp Workflow Management 2018-08-17 08:10:08 UTC
This is an autogenerated message for OBS integration:
This bug (1053559) was mentioned in
https://build.opensuse.org/request/show/629735 Factory / rubygem-cfa_grub2
Comment 8 Michal Filka 2018-08-20 09:02:53 UTC
The fix for this issue was extended. yast2-bootloader accepts GRUB_TERMINAL="console serial" (and other) since 

https://github.com/yast/yast-bootloader/pull/528
https://github.com/config-files-api/config_files_api_grub2/pull/22
https://github.com/config-files-api/config_files_api_grub2/pull/23

@Maintenance:
The fix was created for sle-15-sp1. Do you want a maintenance update for sle-15 too?
Comment 13 Michal Filka 2018-10-02 09:17:46 UTC
fixed in
SLE-15-SP1: 4.1.7
SLE-15: 4.0.38
Comment 14 Swamp Workflow Management 2018-10-25 16:15:07 UTC
SUSE-RU-2018:3442-1: An update that has three recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1053559,1089829,1094031
CVE References: 
Sources used:
SUSE Linux Enterprise Module for Basesystem 15 (src):    rubygem-cfa_grub2-1.0.1-3.3.2, yast2-bootloader-4.0.39-3.5.1
Comment 15 Swamp Workflow Management 2018-10-26 22:26:07 UTC
openSUSE-RU-2018:3521-1: An update that has three recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1053559,1089829,1094031
CVE References: 
Sources used:
openSUSE Leap 15.0 (src):    rubygem-cfa_grub2-1.0.1-lp150.2.3.1, yast2-bootloader-4.0.39-lp150.2.8.1