mirror of
https://github.com/jordanhillis/pvekclean.git
synced 2026-06-20 10:23:50 +02:00
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:
+2
-2
@@ -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"
|
boot_critical_percent="80"
|
||||||
|
|
||||||
# Current kernel
|
# Current kernel
|
||||||
@@ -260,7 +260,7 @@ function pve_kernel_clean {
|
|||||||
else
|
else
|
||||||
printf "healthy "
|
printf "healthy "
|
||||||
fi
|
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 "at ${boot_info[4]}%% capacity (${boot_info[3]} free)\n"
|
||||||
printf "[-] Searching for old PVE kernels on your system...\n"
|
printf "[-] Searching for old PVE kernels on your system...\n"
|
||||||
# For each kernel that was found via dpkg
|
# For each kernel that was found via dpkg
|
||||||
|
|||||||
Reference in New Issue
Block a user