Bug 948732

Summary: yast2-bootloader crashes with nontelling NilClass error
Product: [openSUSE] openSUSE Tumbleweed Reporter: Jan Engelhardt <jengelh>
Component: BootloaderAssignee: Josef Reidinger <jreidinger>
Status: VERIFIED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/YaST2 tarred up

Description Jan Engelhardt 2015-10-04 21:25:25 UTC
Created attachment 650034 [details]
/var/log/YaST2 tarred up

With TW 20151002:

1. grub 0.97 was in MBR
2. rpm -e grub  (grub2 rpm were installed already)
3. `yast2 bootloader`
4. it displays "Do Not Install Any Boot Loader", likely because that is what is in /etc/sysconfig/.
5. switching to "GRUB2":

┌──────────────────────────────────────────────────────────────────────────────┐
│Error                                                                         │
│Internal error. Please report a bug report with logs.                         │
│Details: undefined method `[]' for nil:NilClass                               │
│Caller:  /usr/share/YaST2/include/bootloader/grub2/misc.rb:123:in `grub_Locati│
Comment 1 Jan Engelhardt 2015-10-04 21:28:06 UTC
jng-sfac:/etc/sysconfig # cat bootloader 
LOADER_TYPE="grub"
DEFAULT_APPEND="   splash=silent quiet showopts"
DEFAULT_VGA=""
FAILSAFE_APPEND="showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe"
FAILSAFE_VGA=""
XEN_KERNEL_APPEND="   splash=silent quiet showopts"
XEN_APPEND=""
XEN_VGA=""


jng-sfac:/etc/sysconfig # rpm -q grub2
grub2-2.02~beta2-47.1.x86_64
Comment 2 Josef Reidinger 2015-10-05 10:36:51 UTC
thanks for report. Already reported as bug#923458

*** This bug has been marked as a duplicate of bug 923458 ***
Comment 3 Jan Engelhardt 2018-01-25 12:20:45 UTC
.