Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

didn't remove all headers for old kernels? #16

Open
scyto opened this issue Aug 28, 2024 · 0 comments
Open

didn't remove all headers for old kernels? #16

scyto opened this issue Aug 28, 2024 · 0 comments

Comments

@scyto
Copy link

scyto commented Aug 28, 2024

My expectation was that ll headers for old kernels are removed, seems sometimes that's not the case.

If my expectation is wrong please close the ticket.

On two machines notionally identical it left headers, but different ones

Machine 1


___________________________________________

 OS: Debian GNU/Linux 12 (bookworm)
 Boot Disk: 4% full [38M/1022M used, 985M free] 
 Current Kernel: 6.8.12-1-pve
___________________________________________

[*] Boot disk space used is Healthy at 4% capacity (985M free)
[-] Searching for old PVE kernels on your system...
  + "6.2" added to the kernel remove list
  + "6.2.16-3-pve" added to the kernel remove list
  + "6.2.16-6-pve" added to the kernel remove list
  + "6.2.16-8-pve" added to the kernel remove list
  + "6.2.16-10-pve" added to the kernel remove list
  + "6.2.16-12-pve" added to the kernel remove list
  + "6.2.16-14-pve" added to the kernel remove list
  + "6.2.16-15-pve" added to the kernel remove list
  + "6.2.16-19-pve" added to the kernel remove list
  + "6.2.16-20-pve" added to the kernel remove list
  + "6.5" added to the kernel remove list
  + "6.5.11-4-pve-signed" added to the kernel remove list
  + "6.5.13-3-pve-signed" added to the kernel remove list
  + "6.5.13-6-pve-signed" added to the kernel remove list
  + "6.8" added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 15 selected PVE kernels listed above? [y/N]: y
[*] Removing 15 old PVE kernels...
[-] Removing kernel: 6.2...DONE!
[-] Removing kernel: 6.2.16-3-pve...DONE!
[-] Removing kernel: 6.2.16-6-pve...DONE!
[-] Removing kernel: 6.2.16-8-pve...DONE!
[-] Removing kernel: 6.2.16-10-pve...DONE!
[-] Removing kernel: 6.2.16-12-pve...DONE!
[-] Removing kernel: 6.2.16-14-pve...DONE!
[-] Removing kernel: 6.2.16-15-pve...DONE!
[-] Removing kernel: 6.2.16-19-pve...DONE!
[-] Removing kernel: 6.2.16-20-pve...DONE!
[-] Removing kernel: 6.5...DONE!
[-] Removing kernel: 6.5.11-4-pve-signed...DONE!
[-] Removing kernel: 6.5.13-3-pve-signed...DONE!
[-] Removing kernel: 6.5.13-6-pve-signed...DONE!
[-] Removing kernel: 6.8...DONE!
[*] Updating GRUB...DONE!
[-] Boot Disk: 4% full [38M/1022M used, 985M free] 
[-] Have a nice afternoon ⎦˚◡˚⎣
root@pve2:~/pvekclean# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-headers-6.2.16-19-pve proxmox-headers-6.2.16-20-pve
0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.
After this operation, 184 MB disk space will be freed.
Do you want to continue? [Y/n] 

machine two

___________________________________________

 OS: Debian GNU/Linux 12 (bookworm)
 Boot Disk: 4% full [38M/1022M used, 985M free] 
 Current Kernel: 6.8.12-1-pve
___________________________________________

[*] Boot disk space used is Healthy at 4% capacity (985M free)
[-] Searching for old PVE kernels on your system...
  + "6.2" added to the kernel remove list
  + "6.2.16-3-pve" added to the kernel remove list
  + "6.2.16-8-pve" added to the kernel remove list
  + "6.2.16-10-pve" added to the kernel remove list
  + "6.2.16-12-pve" added to the kernel remove list
  + "6.2.16-14-pve" added to the kernel remove list
  + "6.2.16-15-pve" added to the kernel remove list
  + "6.2.16-19-pve" added to the kernel remove list
  + "6.2.16-20-pve" added to the kernel remove list
  + "6.5" added to the kernel remove list
  + "6.5.11-4-pve-signed" added to the kernel remove list
  + "6.5.13-3-pve-signed" added to the kernel remove list
  + "6.5.13-6-pve-signed" added to the kernel remove list
  + "6.8" added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 14 selected PVE kernels listed above? [y/N]: y
[*] Removing 14 old PVE kernels...
[-] Removing kernel: 6.2...DONE!
[-] Removing kernel: 6.2.16-3-pve...DONE!
[-] Removing kernel: 6.2.16-8-pve...DONE!
[-] Removing kernel: 6.2.16-10-pve...DONE!
[-] Removing kernel: 6.2.16-12-pve...DONE!
[-] Removing kernel: 6.2.16-14-pve...DONE!
[-] Removing kernel: 6.2.16-15-pve...DONE!
[-] Removing kernel: 6.2.16-19-pve...DONE!
[-] Removing kernel: 6.2.16-20-pve...DONE!
[-] Removing kernel: 6.5...DONE!
[-] Removing kernel: 6.5.11-4-pve-signed...DONE!
[-] Removing kernel: 6.5.13-3-pve-signed...DONE!
[-] Removing kernel: 6.5.13-6-pve-signed...DONE!
[-] Removing kernel: 6.8...DONE!
[*] Updating GRUB...DONE!
[-] Boot Disk: 4% full [38M/1022M used, 985M free] 
[-] Have a nice afternoon ⎦˚◡˚⎣
root@pve3:~/pvekclean# apt-get --dry-run autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-headers-6.2.16-19-pve proxmox-headers-6.2.16-20-pve
0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.
Remv proxmox-headers-6.2.16-19-pve [6.2.16-19]
Remv proxmox-headers-6.2.16-20-pve [6.2.16-20]
root@pve3:~/pvekclean# apt  autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-headers-6.2.16-19-pve proxmox-headers-6.2.16-20-pve
0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.
After this operation, 184 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 182604 files and directories currently installed.)
Removing proxmox-headers-6.2.16-19-pve (6.2.16-19) ...
Removing proxmox-headers-6.2.16-20-pve (6.2.16-20) ...

machine 3

___________________________________________

 OS: Debian GNU/Linux 12 (bookworm)
 Boot Disk: 5% full [44M/1022M used, 979M free] 
 Current Kernel: 6.8.12-1-pve
___________________________________________

[*] Boot disk space used is Healthy at 5% capacity (979M free)
[-] Searching for old PVE kernels on your system...
  + "6.2" added to the kernel remove list
  + "6.2.16-3-pve" added to the kernel remove list
  + "6.2.16-6-pve" added to the kernel remove list
  + "6.2.16-8-pve" added to the kernel remove list
  + "6.2.16-10-pve" added to the kernel remove list
  + "6.2.16-12-pve" added to the kernel remove list
  + "6.2.16-14-pve" added to the kernel remove list
  + "6.2.16-15-pve" added to the kernel remove list
  + "6.2.16-18-pve" added to the kernel remove list
  + "6.2.16-19-pve" added to the kernel remove list
  + "6.2.16-20-pve" added to the kernel remove list
  + "6.5" added to the kernel remove list
  + "6.5.11-4-pve-signed" added to the kernel remove list
  + "6.5.13-3-pve-signed" added to the kernel remove list
  + "6.5.13-5-pve-signed" added to the kernel remove list
  + "6.5.13-6-pve-signed" added to the kernel remove list
  + "6.8" added to the kernel remove list
  + "6.8.4-2-pve-signed" added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 18 selected PVE kernels listed above? [y/N]: y
[*] Removing 18 old PVE kernels...
[-] Removing kernel: 6.2...DONE!
[-] Removing kernel: 6.2.16-3-pve...DONE!
[-] Removing kernel: 6.2.16-6-pve...DONE!
[-] Removing kernel: 6.2.16-8-pve...DONE!
[-] Removing kernel: 6.2.16-10-pve...DONE!
[-] Removing kernel: 6.2.16-12-pve...DONE!
[-] Removing kernel: 6.2.16-14-pve...DONE!
[-] Removing kernel: 6.2.16-15-pve...DONE!
[-] Removing kernel: 6.2.16-18-pve...DONE!
[-] Removing kernel: 6.2.16-19-pve...DONE!
[-] Removing kernel: 6.2.16-20-pve...DONE!
[-] Removing kernel: 6.5...DONE!
[-] Removing kernel: 6.5.11-4-pve-signed...DONE!
[-] Removing kernel: 6.5.13-3-pve-signed...DONE!
[-] Removing kernel: 6.5.13-5-pve-signed...DONE!
[-] Removing kernel: 6.5.13-6-pve-signed...DONE!
[-] Removing kernel: 6.8...DONE!
[-] Removing kernel: 6.8.4-2-pve-signed...DONE!
[*] Updating GRUB...DONE!
[-] Boot Disk: 5% full [44M/1022M used, 979M free] 
[-] Have a nice afternoon ⎦˚◡˚⎣
root@pve1:~/pvekclean# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libfl2 proxmox-headers-6.2.16-20-pve proxmox-headers-6.5.13-5-pve proxmox-headers-6.5.13-6-pve proxmox-headers-6.8.12-1-pve proxmox-headers-6.8.4-2-pve
0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded.
After this operation, 475 MB disk space will be freed.
Do you want to continue? [Y/n] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant