Bug ID 1127481
Summary Upgrade to 15.1 tries to install grub-efi even though my bootloader is Legacy BIOS and fails to install packages
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.1
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Installation
Assignee yast2-maintainers@suse.de
Reporter ktsamis@suse.com
QA Contact jsrain@suse.com
Found By ---
Blocker ---

Created attachment 798527 [details]
logs

Using the DVD I chose Upgrade and I saw the error in the Overview section at
the end that it can't detect the efi partition so it might make my system
unbootable and I should open a bug. The problem is after the upgrade was
finished I didn't have a y2log but only y2log-1 and y2log-2. And I couldn't
find the error in those. After reboot I do a zypper up and there are like 800
packages to be updated, all of them cached already. So that means it cached all
the packages instead of installing and I had to do it again. After installing
all of them I see the similar error here:


Executing %posttrans script 'kernel-firmware-20190118-lp151.1.3.noarch.rpm'
<3%>================================================================================================================================[\]
Output of kernel-firmware-20190118-lp151.1.3.noarch.rpm %posttrans script:
    Creating initrd: /boot/initrd-4.12.14-lp150.12.48-default
    dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log
--force /boot/initrd-4.12.14-lp150.12.48-default 4.12.14-lp150.12.48-default
    dracut: *** Including module: bash ***
    dracut: *** Including module: systemd ***
    dracut: *** Including module: warpclock ***
    dracut: *** Including module: systemd-initrd ***
    dracut: *** Including module: i18n ***
    dracut: *** Including module: drm ***
    dracut: *** Including module: plymouth ***
    dracut: *** Including module: crypt ***
    dracut: *** Including module: dm ***
    dracut: Skipping udev rule: 64-device-mapper.rules
    dracut: Skipping udev rule: 60-persistent-storage-dm.rules
    dracut: Skipping udev rule: 55-dm.rules
    dracut: *** Including module: kernel-modules ***
    dracut: *** Including module: lvm ***
    dracut: Skipping udev rule: 64-device-mapper.rules
    dracut: Skipping udev rule: 56-lvm.rules
    dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
    dracut: *** Including module: resume ***
    dracut: *** Including module: rootfs-block ***
    dracut: *** Including module: suse-btrfs ***
    dracut-install: ERROR: installing
'/usr/share/doc/btrfsprogs/dracut-fsck-help.txt' to
'/usr/share/fsck/fsck_help_btrfs.txt'
    dracut: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.GR4CZA/initramfs
/usr/share/doc/btrfsprogs/dracut-fsck-help.txt
/usr/share/fsck/fsck_help_btrfs.txt
    dracut: *** Including module: suse-xfs ***
    dracut: *** Including module: terminfo ***
    dracut: *** Including module: udev-rules ***
    dracut: Skipping udev rule: 40-redhat.rules
    dracut: Skipping udev rule: 50-firmware.rules
    dracut: Skipping udev rule: 50-udev.rules
    dracut: Skipping udev rule: 91-permissions.rules
    dracut: Skipping udev rule: 80-drivers-modprobe.rules
    dracut: *** Including module: dracut-systemd ***
    dracut: *** Including module: haveged ***
    dracut: *** Including module: usrmount ***
    dracut: *** Including module: base ***
    dracut: *** Including module: fs-lib ***
    dracut: *** Including module: shutdown ***
    dracut: *** Including module: suse ***
    dracut: *** Including modules done ***
    dracut: *** Installing kernel module dependencies and firmware ***
    dracut: *** Installing kernel module dependencies and firmware done ***
    dracut: *** Resolving executable dependencies ***
    dracut: *** Resolving executable dependencies done***
    dracut: *** Hardlinking files ***
    dracut: *** Hardlinking files done ***
    dracut: *** Stripping files ***
    dracut: *** Stripping files done ***
    dracut: *** Generating early-microcode cpio image ***
    dracut: *** Constructing GenuineIntel.bin ****
    dracut: *** Store current command line parameters ***
    dracut: Stored kernel commandline:
    dracut:  rd.luks.uuid=luks-3ca9e321-7a76-4dc6-9a46-8c11ac70b25e
    dracut:  rd.lvm.lv=LVM_group/root
    dracut:  resume=UUID=874f7a4f-4f84-4c92-a971-280b933bfea6
    dracut:  root=/dev/mapper/LVM_group-root rootfstype=xfs
rootflags=rw,relatime,attr2,inode64,noquota
    dracut: *** Creating image file '/boot/initrd-4.12.14-lp151.21-default' ***
    dracut: *** Creating initramfs image file
'/boot/initrd-4.12.14-lp151.21-default' done ***

Executing %posttrans script 'grub2-i386-pc-2.02-lp151.19.2.noarch.rpm'
.........................................................................<57%>===========================================================[|]
Output of grub2-i386-pc-2.02-lp151.19.2.noarch.rpm %posttrans script:
    update-bootloader: 2019-02-27 13:20:09 <3> update-bootloader-2225
run_command.294: '/usr/lib/bootloader/grub2-efi/install' failed with exit code
1, output:
    <<<<<<<<<<<<<<<<
    target = x86_64-efi
    ls: cannot access '/sys/firmware/efi/efivars': No such file or directory
    + /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg --no-nvram
--removable
    No valid EFI partition
    >>>>>>>>>>>>>>>>

Executing %posttrans scripts
................................................................................................................................................................................[done]
There are some running programs that might use files deleted by recent upgrade.
You may wish to check and restart some of them. Run 'zypper ps -s' to list
these programs.

Core libraries or services have been updated.
Reboot is required to ensure that your system benefits from these updates.

The logs are a bit of a mess for some reason after the installation, I also
unpacked some tarballs trying to find the error but no luck. Maybe someone else
can have better luck.


You are receiving this mail because: