void-linux / void-linux/void-packages
Missing initrd line in grub.cfg after updating kernels
Nobody has claimed this yet.
- 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):
- I have installed both the
linuxand thelinux-ltspackage. - I have also installed package
zfs(DKMS module). - Both kernel packages mentioned above are out of date.
Steps to reproduce:
- Run
sudo xbps-install -Su
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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