Proxmox VE Kernel Clean: Feature Request #630

Closed
opened 2026-02-04 20:27:09 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @0n1cOn3 on GitHub (Mar 14, 2025).

Originally assigned to: @MickLesk on GitHub.

🌟 Briefly describe the feature

Adding disk space check + way to clean up if the disk is full

📝 Detailed description

I keep running into the scenario where /boot/efi is full. This prevents the script from cleaning up the kernels itself (thanks apt-get...) It would be possible to add a function that takes this into account and also displays an output of the currently available kernels in /boot/efi, where the user can then clean up here with 1-2 keystrokes.

💡 Why is this useful?

Up to now, manual cleanup has always been mandatory, which can be cumbersome. Only then does this script work properly.

Originally created by @0n1cOn3 on GitHub (Mar 14, 2025). Originally assigned to: @MickLesk on GitHub. ### 🌟 Briefly describe the feature Adding disk space check + way to clean up if the disk is full ### 📝 Detailed description I keep running into the scenario where /boot/efi is full. This prevents the script from cleaning up the kernels itself (thanks apt-get...) It would be possible to add a function that takes this into account and also displays an output of the currently available kernels in /boot/efi, where the user can then clean up here with 1-2 keystrokes. ### 💡 Why is this useful? Up to now, manual cleanup has always been mandatory, which can be cumbersome. Only then does this script work properly.
OVERLORD added the enhancement label 2026-02-04 20:27:09 +03:00
Author
Owner

@MickLesk commented on GitHub (Mar 19, 2025):

can you try it and give feedback?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)"
@MickLesk commented on GitHub (Mar 19, 2025): can you try it and give feedback? ```bash bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)" ```
Author
Owner

@oOStroudyOo commented on GitHub (Mar 20, 2025):

can you try it and give feedback?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)"

I didn't have any disk space to clean up but the rest of the script was a success:

Image

@oOStroudyOo commented on GitHub (Mar 20, 2025): > can you try it and give feedback? > > bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)" I didn't have any disk space to clean up but the rest of the script was a success: ![Image](https://github.com/user-attachments/assets/403fd7a7-cee6-4d63-b561-2467d6ee993a)
Author
Owner

@MickLesk commented on GitHub (Mar 26, 2025):

@0n1cOn3 can you give Feedback?

@MickLesk commented on GitHub (Mar 26, 2025): @0n1cOn3 can you give Feedback?
Author
Owner

@MickLesk commented on GitHub (Apr 8, 2025):

No Feedback. Dont merge into main

@MickLesk commented on GitHub (Apr 8, 2025): No Feedback. Dont merge into main
Author
Owner

@0n1cOn3 commented on GitHub (Apr 8, 2025):

Im sorry for being late. I was busy the last few weeks with RL stuff and didnt had time to check out my notifications.

But here I am. :-)

can you try it and give feedback?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)"

Here also some outputs, where the "fixed" version of the link spit out, with success:

Server 01:

    __ __                     __   ________
   / //_/__  _________  ___  / /  / ____/ /__  ____ _____
  / ,< / _ \/ ___/ __ \/ _ \/ /  / /   / / _ \/ __ `/ __ \
 / /| /  __/ /  / / / /  __/ /  / /___/ /  __/ /_/ / / / /
/_/ |_\___/_/  /_/ /_/\___/_/   \____/_/\___/\__,_/_/ /_/

/boot/efi has sufficient space (86%). No cleanup needed.
Available kernels for removal:
 1. proxmox-kernel-6.8.12-6-pve-signed
 2. proxmox-kernel-6.8.12-7-pve-signed
 3. proxmox-kernel-6.8.12-8-pve-signed

Select kernels to remove (comma-separated, e.g., 1,2):
1,2
Kernels to be removed:
proxmox-kernel-6.8.12-6-pve-signed
proxmox-kernel-6.8.12-7-pve-signed
Proceed with removal? (y/n): y
Removing proxmox-kernel-6.8.12-6-pve-signed...
Successfully removed: proxmox-kernel-6.8.12-6-pve-signed
Removing proxmox-kernel-6.8.12-7-pve-signed...
Successfully removed: proxmox-kernel-6.8.12-7-pve-signed
Cleaning up...
Cleanup and GRUB update complete.

Server 02:

    __ __                     __   ________
   / //_/__  _________  ___  / /  / ____/ /__  ____ _____
  / ,< / _ \/ ___/ __ \/ _ \/ /  / /   / / _ \/ __ `/ __ \
 / /| /  __/ /  / / / /  __/ /  / /___/ /  __/ /_/ / / / /
/_/ |_\___/_/  /_/ /_/\___/_/   \____/_/\___/\__,_/_/ /_/

/boot/efi has sufficient space (66%). No cleanup needed.
Available kernels for removal:
 1. proxmox-kernel-6.8.12-5-pve-signed
 2. proxmox-kernel-6.8.12-7-pve-signed
 3. proxmox-kernel-6.8.12-9-pve-signed

Select kernels to remove (comma-separated, e.g., 1,2):
1,2
Kernels to be removed:
proxmox-kernel-6.8.12-5-pve-signed
proxmox-kernel-6.8.12-7-pve-signed
Proceed with removal? (y/n): y
Removing proxmox-kernel-6.8.12-5-pve-signed...
Successfully removed: proxmox-kernel-6.8.12-5-pve-signed
Removing proxmox-kernel-6.8.12-7-pve-signed...
Successfully removed: proxmox-kernel-6.8.12-7-pve-signed
Cleaning up...
Cleanup and GRUB update complete.

@0n1cOn3 commented on GitHub (Apr 8, 2025): Im sorry for being late. I was busy the last few weeks with RL stuff and didnt had time to check out my notifications. But here I am. :-) > can you try it and give feedback? > > bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/scripts/tools/kernel-clean.sh)" Here also some outputs, where the "fixed" version of the link spit out, with success: Server 01: ```txt __ __ __ ________ / //_/__ _________ ___ / / / ____/ /__ ____ _____ / ,< / _ \/ ___/ __ \/ _ \/ / / / / / _ \/ __ `/ __ \ / /| / __/ / / / / / __/ / / /___/ / __/ /_/ / / / / /_/ |_\___/_/ /_/ /_/\___/_/ \____/_/\___/\__,_/_/ /_/ /boot/efi has sufficient space (86%). No cleanup needed. Available kernels for removal: 1. proxmox-kernel-6.8.12-6-pve-signed 2. proxmox-kernel-6.8.12-7-pve-signed 3. proxmox-kernel-6.8.12-8-pve-signed Select kernels to remove (comma-separated, e.g., 1,2): 1,2 Kernels to be removed: proxmox-kernel-6.8.12-6-pve-signed proxmox-kernel-6.8.12-7-pve-signed Proceed with removal? (y/n): y Removing proxmox-kernel-6.8.12-6-pve-signed... Successfully removed: proxmox-kernel-6.8.12-6-pve-signed Removing proxmox-kernel-6.8.12-7-pve-signed... Successfully removed: proxmox-kernel-6.8.12-7-pve-signed Cleaning up... Cleanup and GRUB update complete. ``` Server 02: ```txt __ __ __ ________ / //_/__ _________ ___ / / / ____/ /__ ____ _____ / ,< / _ \/ ___/ __ \/ _ \/ / / / / / _ \/ __ `/ __ \ / /| / __/ / / / / / __/ / / /___/ / __/ /_/ / / / / /_/ |_\___/_/ /_/ /_/\___/_/ \____/_/\___/\__,_/_/ /_/ /boot/efi has sufficient space (66%). No cleanup needed. Available kernels for removal: 1. proxmox-kernel-6.8.12-5-pve-signed 2. proxmox-kernel-6.8.12-7-pve-signed 3. proxmox-kernel-6.8.12-9-pve-signed Select kernels to remove (comma-separated, e.g., 1,2): 1,2 Kernels to be removed: proxmox-kernel-6.8.12-5-pve-signed proxmox-kernel-6.8.12-7-pve-signed Proceed with removal? (y/n): y Removing proxmox-kernel-6.8.12-5-pve-signed... Successfully removed: proxmox-kernel-6.8.12-5-pve-signed Removing proxmox-kernel-6.8.12-7-pve-signed... Successfully removed: proxmox-kernel-6.8.12-7-pve-signed Cleaning up... Cleanup and GRUB update complete. ```
Author
Owner

@0n1cOn3 commented on GitHub (Apr 8, 2025):

Of course, I manually cleaned up the space in the time being. But in any case it happens again, I know where to check :P

@0n1cOn3 commented on GitHub (Apr 8, 2025): Of course, I manually cleaned up the space in the time being. But in any case it happens again, I know where to check :P
Author
Owner

@MickLesk commented on GitHub (Apr 8, 2025):

The script is not lost, just not unnecessarily in the main (untested).

If you think of it, test it when it's ready and comment again.

@MickLesk commented on GitHub (Apr 8, 2025): The script is not lost, just not unnecessarily in the main (untested). If you think of it, test it when it's ready and comment again.
Author
Owner

@0n1cOn3 commented on GitHub (Apr 11, 2025):

The script is not lost, just not unnecessarily in the main (untested).

If you think of it, test it when it's ready and comment again.

I lovely will report more as soon I reach the state again! 💯

@0n1cOn3 commented on GitHub (Apr 11, 2025): > The script is not lost, just not unnecessarily in the main (untested). > > If you think of it, test it when it's ready and comment again. I lovely will report more as soon I reach the state again! 💯
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#630