Bug 786016

Summary: Switching from grub2-efi to elilo does not create initrd - unbootable system
Product: [openSUSE] openSUSE 12.2 Reporter: Andrei Borzenkov <arvidjaar>
Component: YaST2Assignee: Steffen Winterfeldt <snwint>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 logs switching from grub2-efi to elilo

Description Andrei Borzenkov 2012-10-20 07:01:42 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

I tested switch from grub2-efi to elilo on UEFI system. YaST2 created /EFI/SuSE directory with elilo, lilo.conf and vmlinuz. No initrd was copied there so result was system that could not boot.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Andreas Jaeger 2012-10-24 13:54:51 UTC
Please attach the YaST log files.
Comment 2 Andrei Borzenkov 2012-10-25 16:03:09 UTC
Created attachment 510908 [details]
YaST2 logs switching from grub2-efi to elilo

This is new clean installation. Install 12.2 with minimal text only packages accepting mostly defaults. "zypper patch" immediately after installation to make sure we are current. Reboot. Start yast, select elilo as bootloader, confirm elilo install, next, next, ... (accepting defaults everywhere). After finishing:

linux-hoyg:~ # ll /boot/efi/EFI/SuSE/
total 5044
-rwxrwxr-x 1 root root    1251 Oct 25 19:55 elilo.conf
-rwxrwxr-x 1 root root  238984 Jul 16 16:42 elilo.efi
-rwxrwxr-x 1 root root 4919280 Oct  5 02:30 vmlinuz-3.4.11-2.16-desktop
linux-hoyg:~ #

linux-hoyg:~ # cat /boot/efi/EFI/SuSE/elilo.conf
# This file has been transformed by /sbin/elilo.
# Please do NOT edit here -- edit /etc/elilo.conf instead!
# Otherwise your changes will be lost e.g. during kernel-update.
#
# Modified by YaST2. Last modification on Thu Oct 25 19:55:24 MSK 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

timeout = 80
##YaST - boot_efilabel = "openSUSE 12.2"
default = linux
prompt

image = vmlinuz-3.4.11-2.16-desktop
###Don't change this comment - YaST2 identifier: Original name: linux###
    label = linux
    append = "resume=/dev/sda2 splash=silent quiet showopts "
    description = Linux
    initrd = initrd-3.4.11-2.16-desktop-kdump
    root = /dev/sda3

image = vmlinuz-3.4.11-2.16-desktop
###Don't change this comment - YaST2 identifier: Original name: failsafe###
    label = failsafe
    append = "showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset  x11failsafe "
    description = Failsafe
    initrd = initrd-3.4.11-2.16-desktop-kdump
    root = /dev/sda3

linux-hoyg:~ # grep LOADER /etc/sysconfig/bootloader
LOADER_TYPE="elilo"
LOADER_LOCATION=""

linux-hoyg:~ # efibootmgr -v
BootCurrent: 0004
BootOrder: 0005,0004,0000,0001,0002,0003
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0)      ACPI(a0341d0,0)PCI(10,0)SCSI(0,0)
Boot0001* EFI VMware Virtual IDE CDROM Drive (IDE 1:0)  ACPI(a0341d0,0)PCI(7,1)ATAPI(1,0,0)
Boot0002* EFI Network   ACPI(a0341d0,0)PCI(11,0)PCI(0,0)MAC(000c2987d918,0)
Boot0003* EFI Internal Shell (Unsupported option)       MM(b,2ee52000,2f255fff)
Boot0004* opensuse      HD(1,800,4e000,73a1f81d-552e-4ca2-b2f2-456c30ee0ae1)File(\EFI\opensuse\grubx64.efi)
Boot0005* openSUSE 12.2 HD(1,800,4e000,73a1f81d-552e-4ca2-b2f2-456c30ee0ae1)File(\efi\SuSE\elilo.efi)
Comment 3 Steffen Winterfeldt 2012-11-02 12:59:39 UTC
I'm currently reworking boot setup for 12.3 and will check this.
Comment 4 Steffen Winterfeldt 2015-03-31 08:11:30 UTC
we now exclusively using grub2, so closing this