mintupdate symlinks old kernels to vmlinuz even if active version is higher

Open
#983 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux, python

Research direction

Start by reproducing the hybrid HWE and GA kernel setup described in the issue and inspect how mintupdate handles vmlinuz and initrd symlinks when an older GA kernel is installed. Done means installing or updating the older kernel leaves both symlinks targeting the currently running newer kernel.

Written by the indexing model from the issue text.

Description

BUG

Describe the bug
On hybrid systems with both HWE and GA kernels (as backups), mintupdate messes up the vmlinuz and initrd symlinks when updating / installing a GA kernel (older) before the HWE (newer). Requiring manual adjustment with ln -sf.

For example, having a system with both Linux 6.14 HWE and Linux 6.8 GA as backup, when mintupdate shows an update for 6.8 and is applied, the vmlinuz is symlinked to that version, and the active version is now .old. This could cause massive issues with utilities that rely on vmlinuz and initrd.

Screenshots
None

To Reproduce
Steps to reproduce the behavior:

  1. Have a hybrid system with both HWE (newer) and GA (older) kernel
  2. Update / Install new GA (older) kernel
  3. vmlinuz and initrd are now symlinked to the older kernel.

Expected behavior
A clear and concise description of what you expected to happen.

Symlinks should stay as-is if the target kernel update version is lower than the running one.

Distribution:

  • [ x ] Linux Mint
  • LMDE
  • Other (please specify)

Software version:
7.1.1

Logs:
Not needed.

Crash report:
None.

Additional context
None.

Locale:
If the problem is with text not getting displayed correctly, paste the output of the terminal command locale.

Dominant language
Python
Stars
425
Forks
190
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/mintupdate

All issues in linuxmint/mintupdate

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.