Update to PVE Kernel Cleaner

- Added ability to detect if running non PVE kernel
- Fixed install issues when installing from non script paths
- Added boot disk space information such as percentage used, free space available 
- Added a boot disk health checker to see if the boot disk has reached to the defined max percentage used
This commit is contained in:
Jordan
2018-10-25 10:41:38 +02:00
committed by GitHub
parent bb2411d9dd
commit 89ec6ca118
+2 -2
View File
@@ -30,7 +30,7 @@ SOFTWARE.
______________________________________________
'
# Percentage of used space in the /boot which would considered it critically full
# Percentage of used space in the /boot which would consider it critically full
boot_critical_percent="80"
# Current kernel
@@ -260,7 +260,7 @@ function pve_kernel_clean {
else
printf "healthy "
fi
# Display percentage used and avaialbe space left
# Display percentage used and available space left
printf "at ${boot_info[4]}%% capacity (${boot_info[3]} free)\n"
printf "[-] Searching for old PVE kernels on your system...\n"
# For each kernel that was found via dpkg