Summary: | app-admin/eclean-kernel: removes fresh kernel installed by sys-kernel/installkernel[systemd] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nick Owens <mischief> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | andrewammerlaan, info |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nick Owens
2023-08-31 02:27:51 UTC
ccing andrew in case it's caused by recent changes (In reply to Sam James from comment #1) > ccing andrew in case it's caused by recent changes This was always the behaviour of eclean-kernel with systemd-boot. I think the problem is that there is no good way for eclean-kernel to know which entry is the default systemd-boot entry. If it is not configured otherwise, the default entry is implicitly the newest. does this not work? beast /usr/src/linux # bootctl list --json=pretty | jq '.[] | select( .isDefault == true )' { "id": "8e9dce24dde354032c8d155363fd7c13-6.5.0-rc7.conf", "path": "/boot/loader/entries/8e9dce24dde354032c8d155363fd7c13-6.5.0-rc7.conf", "root": "/boot", "title": "Gentoo Linux", "showTitle": "Gentoo Linux (6.5.0-rc7)", "sortKey": "gentoo", "version": "6.5.0-rc7", "machineId": "8e9dce24dde354032c8d155363fd7c13", "options": "root=UUID=11606a5d-b169-4d10-9520-039789a65607 rw systemd.machine_id=8e9dce24dde354032c8d155363fd7c13", "linux": "/8e9dce24dde354032c8d155363fd7c13/6.5.0-rc7/linux", "initrd": [ "/8e9dce24dde354032c8d155363fd7c13/6.5.0-rc7/initrd" ], "isDefault": true, "isSelected": false } (In reply to Nick Owens from comment #3) > does this not work? Probably, As a temporary workaround you can call eclean-kernel with the "--num 1" argument which should leave the latest kernel. |