Bug 26687

Summary: grub2-efi: grub2-efi.cfg dangling link
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: livecd-tools-27.1-4.mga8.x86_64.src.rpm CVE:
Status comment:

Description Bit Twister 2020-05-26 15:51:00 CEST
Description of problem:  mga8 dev0

The following is the dangling link: 
/etc/grub2-efi.cfg -> ../boot/EFI/EFI/mageia/grub.cfg 

Version-Release number of selected component (if applicable):

How reproducible: Always


Steps to Reproduce:
1. clean install using Mageia-Cauldron-netinstall-nonfree-x86_64.iso with enabled nonfree and tainted media and disable all update selections
8. symlinks -r / | grep dangling
Comment 1 Lewis Smith 2020-05-26 22:13:30 CEST
Thank you for pointing this out.
I do not have Grub2, unable to investigate it.

Assigning to Thierry for grub2.

Assignee: bugsquad => thierry.vignaud

Comment 2 Bit Twister 2020-05-27 10:14:31 CEST
(In reply to Lewis Smith from comment #1)
> Thank you for pointing this out.
> I do not have Grub2, unable to investigate it.

I would be surprised if you did not have it. Go ahead try running
  locate bin/grub     :)

I did forget to mention it is a gparted, CMS/Legacy OS MBR install with
a bios grub partition.
Bit Twister 2020-05-30 02:45:11 CEST

Summary: grub2-efi.cfg dangling link => grub2-efi: grub2-efi.cfg dangling link
Source RPM: grub2-2.04.0-15.mga8.src.rpm => grub2-2.04.0-16.mga8.src.rpm

Comment 3 Martin Whitaker 2020-05-30 19:24:37 CEST
% urpmf --use-distrib mirror/mageia/distrib/cauldron/x86_64/ /etc/grub2-efi.cfg
grub2-efi:/etc/grub2-efi.cfg
grub2-efi:/etc/grub2-efi.cfg

grub2-efi shouldn't have been installed on a legacy BIOS system. Please attach /root/drakx/report.bug.xz so we can see what the installer did.

CC: (none) => mageia
Keywords: (none) => NEEDINFO

Comment 4 Bit Twister 2020-05-30 23:27:26 CEST
(In reply to Martin Whitaker from comment #3)


> grub2-efi shouldn't have been installed on a legacy BIOS system.
Yet another clean network install. Found it after livecd-tools
was installed my install_addons script.

Snippet from my install_addons script.

     #**************************************************************
     #*    installing 10/122 livecd-tools ! ! Tools for building live CDs​
     #**************************************************************
urpmi livecd-tools
Preparing...                     #########
     1/28: lib64sepol1           #########
     2/28: hfsplus-tools         #########
     3/28: libselinux-utils      #########
     4/28: libsss_idmap          #########
     5/28: perl-Digest-SHA1      #########
     6/28: lib64efivar0          #########
     7/28: efibootmgr            #########
     8/28: grub2-efi             #########


I am sorry for wasting your time. I have gone back and modified all
my install/change script to do a before/after dangling check instead
a general check at end of all installs.

Keywords: NEEDINFO => (none)
Source RPM: grub2-2.04.0-16.mga8.src.rpm => livecd-tools-27.1-4.mga8.x86_64.src.rpm