Dude,PVE Update Again,Can't Remove Kernel
Shuazijun opened this issue · 1 comments
Shuazijun commented
zbb67 commented
Hi, thanks for your work on this.
Maybe same as Shuazijun says above, here I'm using "-rn" to try to remove a later kernel. It recognises a newer kernel (6.5.11-4-pve-signed) and says it deletes it, but it hasn't gone (still see 6.5.11-4-pve-signed in the re-run, and also still in Grub and in installed list). Sorry if I'm missing something.
root@prox07:~# ./pvekclean.sh -rn
Usage: pvekclean.sh [OPTION1] [OPTION2]...
-k, --keep [number] Keep the specified number of most recent PVE kernels on the system
Can be used with -f or --force for non-interactive removal
-f, --force Force the removal of old PVE kernels without confirm prompts
-rn, --remove-newer Remove kernels that are newer than the currently running kernel
-s, --scheduler Have old PVE kernels removed on a scheduled basis
-v, --version Shows current version of pvekclean
-r, --remove Uninstall pvekclean from the system
-i, --install Install pvekclean to the system
-d, --dry-run Run the program in dry run mode for testing without making system changes
___________________________________________
OS: Debian GNU/Linux 12 (bookworm)
Boot Disk: 1% full [344K/1022M used, 1022M free]
Current Kernel: 6.2.16-19-pve
Latest Kernel: 6.5.11-4-pve-signed
___________________________________________
[*] Boot disk space used is Healthy at 1% capacity (1022M free)
[-] Searching for old PVE kernels on your system...
+ "6.5" added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 1 selected PVE kernel listed above? [y/N]: y
[*] Removing 1 old PVE kernel...
[-] Removing kernel: 6.5...DONE!
[*] Updating GRUB...DONE!
[-] Boot Disk: 1% full [344K/1022M used, 1022M free]
[-] Have a nice afternoon ⎦˚◡˚⎣
root@prox07:~#
root@prox07:~# ./pvekclean.sh -rn
___________________________________________
Usage: pvekclean.sh [OPTION1] [OPTION2]...
-k, --keep [number] Keep the specified number of most recent PVE kernels on the system
Can be used with -f or --force for non-interactive removal
-f, --force Force the removal of old PVE kernels without confirm prompts
-rn, --remove-newer Remove kernels that are newer than the currently running kernel
-s, --scheduler Have old PVE kernels removed on a scheduled basis
-v, --version Shows current version of pvekclean
-r, --remove Uninstall pvekclean from the system
-i, --install Install pvekclean to the system
-d, --dry-run Run the program in dry run mode for testing without making system changes
___________________________________________
OS: Debian GNU/Linux 12 (bookworm)
Boot Disk: 1% full [344K/1022M used, 1022M free]
Current Kernel: 6.2.16-19-pve
Latest Kernel: 6.5.11-4-pve-signed
___________________________________________
[*] Boot disk space used is Healthy at 1% capacity (1022M free)
[-] Searching for old PVE kernels on your system...
+ "6.5" added to the kernel remove list
[-] PVE kernel search complete!
[!] Would you like to remove the 1 selected PVE kernel listed above? [y/N]:
Thanks in advance