void-linux / void-linux/void-packages

xbps-remove linux<version> removes initramfs but leaves kernel in place

Open
#59,750 2 comments 1 reaction 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.12.79_1 x86_64 GenuineIntel uptodate r

Package(s) Affected

linux5.10-5.10.251_1 linux5.15-5.15.201_1 linux6.1-6.1.154_1 linux6.6-6.6.130_1 linux6.12-6.12.79_1 linux6.18-6.18.20_1 linux6.19-6.19.10_1

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

no

Expected behaviour

When running xbps-remove linux$VERSION, either the initramfs should be preserved, or initramfs+kernel+config+modules should all be removed.

Actual behaviour

Kernel stays, initramfs gets removed.

I think this is due to kernel post-remove hooks being called during package removal even though this should be the job of vkpurge.

Steps to reproduce

I am not sure if this happens with a normal install, I used a custom install script for this system.

For sake of completeness, I will leave this link to my install script here, but I will test this with a normal install in a moment.
xbps-install linux5.10
xbps-remove linux5.10
Replace 5.10 with any of the versions listed above, the same thing happens.

Will look into this further, updates below.

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 xbps-install linux5.10 and xbps-remove linux5.10, then compare the behavior of the xbps-remove kernel post-remove hooks with vkpurge. The linked install script may help test whether the custom installation matters. Done means the selected policy is applied consistently: either the initramfs remains, or the kernel, initramfs, config, and modules are all removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.