Bug 12504 - Grub2-Efi not updated after new kernel installation
Summary: Grub2-Efi not updated after new kernel installation
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 20:34 CET by Ingolf Schaefer
Modified: 2014-12-11 09:40 CET (History)
2 users (show)

See Also:
Source RPM: grub2-2.00-58.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Ingolf Schaefer 2014-02-01 20:34:20 CET
Description of problem:
I have made an EFI-bootable version of Mageia following the instructions from the wiki  here (https://wiki.mageia.org/en/UEFI_booting). This involved manually installing grub2-efi and making the bootloader with 

grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Mageia --recheck

into the 100 MB efi partition that I mounted at /boot/efi before.

It works great with any problems, but whenever there is a new kernel, I have to manually repeat the same procedure again, since it fails to start the newer kernel from the efi boot otherwise.

How reproducible:
Each new kernel version triggers the problem.

Expected behaviour:
The post installation script should generate the efi-loader with the last configuration. That would involve mounting the efi partition as well.



Reproducible: 

Steps to Reproduce:
Ingolf Schaefer 2014-02-01 20:41:17 CET

Source RPM: http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/grub2-2.00-58.mga4.src.rpm => grub2-2.00-58.mga4.src.rpm

Manuel Hiebel 2014-02-01 22:45:20 CET

CC: (none) => zen25000
Assignee: bugsquad => tmb

Comment 1 Barry Jackson 2014-02-02 00:19:25 CET
There should be no need to run grub2-install after a kernel update.

Kernel updates trigger a re-build of the /boot/grub2/grub.cfg which should be enough.

However I have not used EFI so I will watch this space ;)

Depending on the final approach adopted for EFI implementation in the installer then there will need to be changes to the grub2-efi %post script at least, but this will be for Mga5 I guess.
Comment 2 Ingolf Schaefer 2014-02-10 11:11:10 CET
The last kernel update (3.12.9-desktop-1) worked flawlessly and is bootable after normal update without reinstalling grub2-efi.

@BarryJackson I always had a correct grub.cfg file after the update, but it would hang after booting the new kernel for whatever reason. The older kernels would start normally.
Comment 3 Olivier FAURAX 2014-12-09 00:54:13 CET
@Ingolf: Is this bug still present?

CC: (none) => olivier

Comment 4 Ingolf Schaefer 2014-12-11 09:40:39 CET
I have not encountered it since February.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.