FEDORA-2019-df50a7eda6

bugfix update in Fedora 30 for grubby

Status: stable 3 months ago

Fix /etc/kernel/ hook scripts not being executed on kernel installs which broke dkms.

How to install

sudo dnf upgrade --advisory=FEDORA-2019-df50a7eda6

Comments 13

This update has been submitted for testing by javierm.

This update test gating status has been changed to 'waiting'.

This update test gating status has been changed to 'ignored'.

This update has been pushed to testing.

karma: +1 critpath: +1

This update has reached 14 days in testing and can be pushed to stable now if the maintainer wishes

Installing new kernels creates a new grub boot entry just fine

karma: +1 critpath: +1

Hi, I opened the bug report 1696202.

NOTE: I have manually replaced a proper machine-id with <machine-id> to post it here.

As far as I can judge grubby-8.40-31 does NOT resolve the issue of a missing /boot/ in front of

linux /vmlinuz-0-rescue-<machine-id>
initrd /initramfs-0-rescue-<machine-id>.img

lines in /boot/loader/entries/<machine-id>-0-rescue.conf. But this is needed in order to boot the rescue image.</machine-id>

For testing I did the following:

[relentless@yoga-lan ~]$ sudo rm -f /boot/vmlinuz-0-rescue-* /boot/initramfs-0-rescue-*.img

[relentless@yoga-lan ~]$ sudo /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) /boot/vmlinuz-$(uname -r)

/etc/kernel/postinst.d/51-dracut-rescue-postinst.sh: line 64: new-kernel-pkg: command not found

[relentless@yoga-lan ~]$ sudo rm -f /boot/vmlinuz-0-rescue-* /boot/initramfs-0-rescue-*.img

[relentless@yoga-lan ~]$ kernel-install add $(uname -r) /lib/modules/$(uname -r)/vmlinuz

[relentless@yoga-lan ~]$ sudo ls /boot/loader/entries/

<machine-id>-0-rescue.conf                       <machine-id>-5.1.15-300.fc30.x86_64.conf
<machine-id>-5.1.12-300.fc30.x86_64.conf  <machine-id>-5.1.16-300.fc30.x86_64.conf

[relentless@yoga-lan ~]$ sudo cat /boot/loader/entries/<machine-id>-0-rescue.conf

title Fedora (0-rescue-<machine-id>) 30 (Thirty)
version 0-rescue-<machine-id>
linux /vmlinuz-0-rescue-<machine-id>
initrd /initramfs-0-rescue-<machine-id>.img
options $kernelopts
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel

[relentless@yoga-lan ~]$ sudo dnf list installed grubby

Installed Packages
grubby.x86_64                                                  8.40-30.fc30                                                  @fedora

[relentless@yoga-lan ~]$ sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-df50a7eda6

Fedora 30 - x86_64 - Test Updates                                                                   2.2 MB/s |  12 MB     00:05    
Last metadata expiration check: 0:00:05 ago on Wed 10 Jul 2019 08:20:51 AM IDT.
Dependencies resolved.
====================================================================================================================================
 Package                    Architecture               Version                            Repository                           Size
====================================================================================================================================
Upgrading:
 grubby                     x86_64                     8.40-31.fc30                       updates-testing                      36 k

[snip]

Upgraded:
  grubby-8.40-31.fc30.x86_64                                                                                                        
Complete!

[relentless@yoga-lan ~]$ sudo rm -f /boot/vmlinuz-0-rescue-* /boot/initramfs-0-rescue-*.img

[relentless@yoga-lan ~]$ sudo kernel-install add $(uname -r) /lib/modules/$(uname -r)/vmlinuz

[relentless@yoga-lan ~]$ sudo cat /boot/loader/entries/<machine-id>-0-rescue.conf

title Fedora (0-rescue-<machine-id>) 30 (Thirty)
version 0-rescue-<machine-id>
linux /vmlinuz-0-rescue-<machine-id>
initrd /initramfs-0-rescue-<machine-id>.img
options $kernelopts
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel
[relentless@yoga-lan ~]$

Please correct me if I tested something wrong here.

karma: -1 critpath: +1 #1696202: -1

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

karma: +1 critpath: +1 #1696202: +1

This update has been submitted for stable by javierm.

This update has been pushed to stable.

After installing grubby-deprecated updating a kernel restlessly changes set-daefault= in grub.cfg from "${saved_entry}" to "0"

Add Comment & Feedback

Please login to add feedback.

Content Type
RPM
Status
stable
Test Gating
Submitted by
Update Type
bugfix
Update Severity
unspecified
Karma
+3
stable threshold: 3
unstable threshold: -3
Autopush (karma)
Disabled
Autopush (time)
Disabled
Dates
submitted 4 months ago
in testing 4 months ago
in stable 3 months ago

Related Bugs 1

0+1 #1696202 Kernel hook scripts in /etc/kernel/ are not executed when a new kernel is installed

Automated Test Results