Bug 18438 - Kernel package missing GRUB2 update
Summary: Kernel package missing GRUB2 update
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2016-05-11 19:05 CEST by Davide Nifosi
Modified: 2016-05-12 20:01 CEST (History)
2 users (show)

See Also:
Source RPM: kernel-4.6.0-0.rc7.2.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Davide Nifosi 2016-05-11 19:05:18 CEST
Description of problem:
Last few kernel packages (last one is 4.6.0-0.rc7.2) do not trigger an update of the GRUB2 menu entries, causing the bootloader menu to show only older kernels.

Version-Release number of selected component (if applicable): 4.6.0-0.rc7.2.mga6


How reproducible: always


Steps to Reproduce:
1. update kernel-desktop to version 4.6.0-0.rc7.2
2. reboot
3. check GRUB2 menu entries: default option still points to the previously installed kernel
Comment 1 Marja Van Waes 2016-05-12 11:28:39 CEST
Do you have a legacy BIOS system (or UEFI in BIOS mode)?

If so, then you may have noticed the message:

  Cannot find a boot loader installed. Only taking care of initrd

and then this is a duplicate of bug 18407, which was caused by a faulty grub2 some time ago.

In that case, please run, as root

  update-grub2
  grub2-install /dev/sda

(adjust /dev/sda if the bootloader was installed some place else)

Next kernel update should then be fine.

@ Barjac

does "grub2-install" include update-grub2, so that only "grub2-install" is needed?

Keywords: (none) => NEEDINFO
CC: (none) => marja11, zen25000

Comment 2 Barry Jackson 2016-05-12 12:04:16 CEST
(In reply to Marja van Waes from comment #1)

> 
> @ Barjac
> 
> does "grub2-install" include update-grub2, so that only "grub2-install" is
> needed?

No. In fact there is no reason to run grub2-install on kernel update, this is only required on grub2 update.

All that is required is update-grub2 and this is now handled by the kernel package/drakboot since the file triggers were removed from grub2.
Comment 3 Marja Van Waes 2016-05-12 13:58:58 CEST
(In reply to Barry Jackson from comment #2)
> (In reply to Marja van Waes from comment #1)
> 
> > 
> > @ Barjac
> > 
> > does "grub2-install" include update-grub2, so that only "grub2-install" is
> > needed?
> 
> No. In fact there is no reason to run grub2-install on kernel update, this
> is only required on grub2 update.
> 
> All that is required is update-grub2 and this is now handled by the kernel
> package/drakboot since the file triggers were removed from grub2.

see bug 18407, after the addition of too many fedora patches, both grub2 and kernel updates had a problem, until i manually invoked grub2-install
Comment 4 Davide Nifosi 2016-05-12 20:01:49 CEST
I'm on a BIOS system. I haven't seen that particular error message, but after issuing those two commands and updating to kernel 4.6.0-rc7.3 grub.cfg was correctly updated. Thank you

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


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