Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Old kernel versions not removed properly
@ 2024-02-03 17:31 joshuakraemer
  2024-02-03 17:57 ` Chocimier
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: joshuakraemer @ 2024-02-03 17:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4092 bytes --]

New issue by joshuakraemer on void-packages repository

https://github.com/void-linux/void-packages/issues/48511

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.5_2 x86_64 GenuineIntel uptodate rrrrmmnFFFFFFFFFFFFF

### Package(s) Affected

xbps-0.59.2_2

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

_No response_

### Expected behaviour

Before each system update, I check for installed kernels with `xbps-query --regex -s '^linux[0-9.]+-[0-9._]+'`, remove old kernel packages with `xbps-remove -Rf linuxX.X` and remove old kernels with `vkpurge rm all`. I expect all old kernels to be removed completely by those commands, including the corresponding header packages.

### Actual behaviour

Despite the procedure described above, old kernels don't seem to be removed properly. After an update carried out today, there are still multiple old header packages installed:
```
% xbps-query --regex -s '^linux[0-9]'
[*] linux6.0-headers-6.0.19_1 Linux kernel and modules (6.0 series) - source headers for 3rd party modules
[*] linux6.1-headers-6.1.71_1 Linux kernel and modules (6.1 series) - source headers for 3rd party modules
[*] linux6.3-headers-6.3.13_2 Linux kernel and modules (6.3 series) - source headers for 3rd party modules
[*] linux6.5-6.5.13_1         Linux kernel and modules (6.5 series)
[*] linux6.5-headers-6.5.13_1 Linux kernel and modules (6.5 series) - source headers for 3rd party modules
[*] linux6.6-6.6.11_1         Linux kernel and modules (6.6 series)
[*] linux6.6-headers-6.6.11_1 Linux kernel and modules (6.6 series) - source headers for 3rd party modules
```

During the update, DKMS modules for 9 kernels have been built (those even include kernel versions for which no headers are installed):
```
nvidia-dkms-535.154.05_1: configuring ...
Added DKMS module 'nvidia-535.154.05'.
Skipping kernel-5.13.19_1. kernel-headers package not installed...
Building DKMS module 'nvidia-535.154.05' for kernel-5.15.60_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-5.15.60_1... done.
Skipping kernel-5.19.17_1. kernel-headers package not installed...
Building DKMS module 'nvidia-535.154.05' for kernel-6.0.19_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.0.19_1... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.1.46_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.1.46_1... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.1.55_2... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.1.55_2... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.1.71_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.1.71_1... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.3.13_2... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.3.13_2... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.5.13_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.5.13_1... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.5.5_2... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.5.5_2... done.
Building DKMS module 'nvidia-535.154.05' for kernel-6.6.11_1... done.
Installing DKMS module 'nvidia-535.154.05' for kernel-6.6.11_1... done.
```

Files in /boot/:
```
config-6.5.13_1
config-6.5.5_2
config-6.6.11_1
efi
grub
initramfs-5.15.60_1.img
initramfs-6.0.19_1.img
initramfs-6.1.46_1.img
initramfs-6.1.55_2.img
initramfs-6.1.71_1.img
initramfs-6.3.13_2.img
initramfs-6.5.13_1.img
initramfs-6.5.5_2.img
initramfs-6.6.11_1.img
vmlinuz-6.5.13_1
vmlinuz-6.5.5_2
vmlinuz-6.6.11_1
```

### Steps to reproduce

1. Check for installed kernels with `xbps-query --regex -s '^linux[0-9.]+-[0-9._]+'`
2. Remove all old kernel packages with `xbps-remove -Rf linuxX.X`
3. Remove all old kernels with `vkpurge rm all`
4. Update system with `xbps-install -Su`
5. Check for old header packages with `xbps-query --regex -s '^linux[0-9.]+-headers'`
6. Check for old kernel files in /boot/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-04 10:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03 17:31 [ISSUE] Old kernel versions not removed properly joshuakraemer
2024-02-03 17:57 ` Chocimier
2024-02-03 18:19 ` joshuakraemer
2024-02-04  6:08 ` ahesford
2024-02-04  6:08 ` [ISSUE] [CLOSED] " ahesford
2024-02-04 10:55 ` joshuakraemer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).