Skip to content

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

@BodgeMaster

Description

@BodgeMaster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-testingTesting a PR or reproducing an issue needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions