void-linux / void-linux/void-packages

Missing initrd line in grub.cfg after updating kernels

Open
#42,266 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.1.4_1 x86_64 GenuineIntel notuptodate rrFFF

Package(s) Affected

linux6.1 linux5.15

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Every menuentry in /boot/grub/grub.cfg contains lines of the form:

  echo  'Loading initial ramdisk ...'
  initrd  /boot/initramfs-${VERSION}.img
Actual behaviour

For the newly installed kernel versions, the above lines are missing from the menuentry in /boot/grub/grub.cfg. This makes the new kernels unbootable. I have to restart the machine and pick an older kernel that was previously installed.

Running update-grub fixes the problem. The initrd lines then are added to all menuentrys in /boot/grub/grub.cfg.

Steps to reproduce

Pre-conditions (not sure which are actually relevant, but they might all be):

  1. I have installed both the linux and the linux-lts package.
  2. I have also installed package zfs (DKMS module).
  3. Both kernel packages mentioned above are out of date.

Steps to reproduce:

  1. Run sudo xbps-install -Su

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue with linux, linux-lts, and zfs installed by running sudo xbps-install -Su, then compare /boot/grub/grub.cfg before and after update-grub. Trace the kernel update path and its GRUB configuration handling; done means newly installed kernel menuentries include the expected initrd lines without requiring a manual update-grub.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.