Bug 923458

Summary: Startup of YaST bootloader fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Lars Müller <lmuelle>
Component: YaST2Assignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_gp-dpinp5x, jengelh, jreidinger, lmuelle, mfilka, mrmazda
Version: 201502*   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
URL: https://trello.com/c/wxuj1dCc/29-opensuse-p5-923458-have-nice-way-in-yast2-bootloader-to-say-that-grub1-is-no-longer-support-do-not-crash-as-now
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: save_y2logs created tar ball
y2logs tgz from 20150516 TW host gx745

Description Lars Müller 2015-03-20 18:20:11 UTC
On a remote openSUSE 20150318 (Tumbleweed) system I try to launch as root user

  yast bootloader

and that lead first to pull down menu labeled whih shows:

  Do Not Install Any Boot Loader▒

and offers GRUB2 or GRUB2-EFI.

As soon as I select and acknowledges GRUB2 I get:

  Error
  Internal error. Please report a bug report with logs.
  Details: undefined method `include?' forn il:NilClass
  Caller:  /usr/share/YaST2/include/bootloader/routines/dialogs.rb:132:in `MainDialog'
Comment 1 Lars Müller 2015-03-20 18:23:01 UTC
/etc/sysconfig/bootloader defines:

LOADER_TYPE="grub"
DEFAULT_APPEND="resume=/dev/vda1 splash=silent quiet  showopts"
DEFAULT_VGA="0x317"
FAILSAFE_APPEND="apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe"
FAILSAFE_VGA="0x317"
XEN_KERNEL_APPEND="resume=/dev/vda1 splash=silent quiet  showopts"
XEN_APPEND=""
XEN_VGA="0x317"
CYCLE_DETECTION="no"
CYCLE_NEXT_ENTRY="1"
LOADER_LOCATION=""

This is a continues updated openSUSE system.
Comment 2 Josef Reidinger 2015-03-23 13:15:13 UTC
Hi, Lars. I need y2logs to check what happens. Also how do you update? Via DVD or zypper dup? grub1 is no longer supported for TW.
Comment 3 Lars Müller 2015-03-23 15:23:39 UTC
Created attachment 628174 [details]
save_y2logs created tar ball

(In reply to Josef Reidinger from comment #2)
> Hi, Lars. I need y2logs to check what happens.

See the attached y2log-S07o86.tar.gz

> Also how do you update? Via
> DVD or zypper dup?

zypper up is the command I use in general first.

After that finished I check if calling zypper dup would pull in or change more.

> grub1 is no longer supported for TW.

Sure, but YaST should if possible show a bit nicer message. ;)
Comment 4 Josef Reidinger 2015-03-23 15:39:31 UTC
(In reply to Lars Müller from comment #3)
> Created attachment 628174 [details]
> save_y2logs created tar ball
> 
> (In reply to Josef Reidinger from comment #2)
> > Hi, Lars. I need y2logs to check what happens.
> 
> See the attached y2log-S07o86.tar.gz

thanks

> 
> > Also how do you update? Via
> > DVD or zypper dup?
> 
> zypper up is the command I use in general first.
> 
> After that finished I check if calling zypper dup would pull in or change
> more.

Thanks, I just need to be sure which part is affected.

> 
> > grub1 is no longer supported for TW.
> 
> Sure, but YaST should if possible show a bit nicer message. ;)

agreed. I just want to verify which way you got there. I add it to our roadmap.
Comment 5 Felix Miata 2015-05-19 07:22:27 UTC
Created attachment 634676 [details]
y2logs tgz from 20150516 TW host gx745

64 bit TW host gx745 here starting 'yast2 bootloader &' from konsole5 matches almost identically comment 0, except the system is without grub2* installed, with Grub Legacy installed, and with gfxboot* installed. The message popup is identical to that in comment 0. The main difference is that I confirm no bootloader, because the select list is missing an offer of Grub Legacy. /etc/sysconfig/bootloader's uncommented non-blank lines:

LOADER_TYPE="grub"
SECURE_BOOT="no"
CYCLE_DETECTION="no"
CYCLE_NEXT_ENTRY="1"
Comment 6 Josef Reidinger 2015-06-01 14:22:19 UTC
fix for crash is in review https://github.com/yast/yast-bootloader/pull/236
Comment 7 Josef Reidinger 2015-06-02 12:38:07 UTC
fix for crash is merged, what missing is some user friendly popup when trying to modify unsupported bootloader.
Comment 8 Josef Reidinger 2015-06-30 07:44:05 UTC
*** Bug 929594 has been marked as a duplicate of this bug. ***
Comment 9 Felix Miata 2015-06-30 21:04:42 UTC
gx745:~ # yast2 bootloader &
[1] 1496
gx745:~ # terminate called after throwing an instance of 'storage::SystemCmdException'
  what():  Command not found: "/sbin/btrfs filesystem show"
YaST got signal 6 at file /usr/share/YaST2/modules/ProductFeatures.rb:170
/sbin/yast2: line 426:  1522 Aborted                 $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

[1]+  Exit 134                yast2 bootloader
gx745:~ # rpm -qa | grep ootload
perl-Bootloader-0.834-1.1.x86_64
yast2-bootloader-3.1.133-1.1.x86_64
perl-Bootloader-YAML-0.834-1.1.x86_64
Comment 10 Josef Reidinger 2015-07-01 06:53:27 UTC
Felix this looks like different issue, can you please open new bug report and include such message? it is exception from libstorage.
Comment 11 Felix Miata 2015-07-01 07:52:07 UTC
Bug 936710 has been added to the database.
Comment 12 Josef Reidinger 2015-10-05 10:36:51 UTC
*** Bug 948732 has been marked as a duplicate of this bug. ***
Comment 13 Josef Reidinger 2016-09-30 15:27:35 UTC
popup for unsupported bootloader in review https://github.com/yast/yast-bootloader/pull/361
Comment 14 Josef Reidinger 2016-09-30 16:36:25 UTC
merged