Bug 1174465

Summary: Kernel installation: vmlinuz and initramfs.img symlinks should be created/updated
Product: [Fedora] Fedora Reporter: Basic Six <drbasic6>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: admiller, packaging-team-maint
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 20:07:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Basic Six 2014-12-15 21:47:25 UTC
Whenever Yum updates the kernel, there's a new set of (vmlinuz* initramfs*) files in /boot and the Grub config is updated to directly point to those new files. However, it would be useful to have symlinks pointing to whatever version was recently installed.

When a separate boot loader is installed, which might load Fedora or another system (this boot loader would not be mounted in Fedora, so Fedora cannot remove the other system from the boot menu when updating), this loader could be configured to load vmlinuz and initramfs.img. Whenever a new kernel is installed, the Fedora system should take care of updating those symlinks.

Here's a simple script which usually works:
$ cat /etc/kernel/postinst.d/10-boot-kernel-symlinks.sh 
#!/bin/bash

KERNEL_VERSION="$1"
KERNEL_IMAGE="$2"

ln -sf $KERNEL_IMAGE /boot/vmlinuz
ln -sf /boot/initramfs-$KERNEL_VERSION.img /boot/initramfs.img

logger Updated kernel symlinks for new version $KERNEL_VERSION

This does not work in combination with fedup. The links are not updated to point to the fedup files, this has to be done manually (or else the upgrade won't start). But when updating the system using "yum upgrade", it works. This script is a demonstration (to show what I believe should be done on every kernel update) rather than a complete suggestion.

Fedora should probably offer these symlinks out of the box in order for a separate boot loader to work properly.

Comment 1 Fedora End Of Life 2015-05-29 13:30:49 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2015-06-29 23:49:59 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Fedora End Of Life 2016-07-19 20:07:27 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.