FEDORA-2019-df50a7eda6 created by javierm a year ago for Fedora 30
stable

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

How to install

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

This update has been submitted for testing by javierm.

a year ago

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

a year ago

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

a year ago

This update has been pushed to testing.

a year ago
karma

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

a year ago
User Icon kparal commented & provided feedback a year ago
karma

Installing new kernels creates a new grub boot entry just fine

User Icon relentless commented & provided feedback a year ago
karma

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.

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.

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

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.

a year ago
User Icon relentless provided feedback a year ago
karma
BZ#1696202 Kernel hook scripts in /etc/kernel/ are not executed when a new kernel is installed

This update has been submitted for stable by javierm.

a year ago

This update has been pushed to stable.

a year ago
User Icon bluepencil commented & provided feedback a year ago

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


Please login to add feedback.

Metadata
Type
bugfix
Karma
3
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
disabled
Stable by Time
disabled
Dates
submitted
a year ago
in testing
a year ago
in stable
a year ago
BZ#1696202 Kernel hook scripts in /etc/kernel/ are not executed when a new kernel is installed
0
1

Automated Test Results