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

Dude,PVE Update Again,Can't Remove Kernel #10

Open
Shuazijun opened this issue Nov 24, 2023 · 1 comment
Open

Dude,PVE Update Again,Can't Remove Kernel #10

Shuazijun opened this issue Nov 24, 2023 · 1 comment

Comments

@Shuazijun
Copy link

Dude,PVE Update Again,Can't Remove Kernel ↓↓↓
image
Perhaps this kernel should not be deleted? As a dependency of version 6.5. x?

@zbb67
Copy link

zbb67 commented Nov 24, 2023

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

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

2 participants