Update package version to 107 and add cleanup-initramfs script

This commit is contained in:
2025-07-07 21:57:46 +03:00
parent ebb592f61a
commit 3704f302d3
5 changed files with 27 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
for file in $(find /boot/ -name 'initramfs-*'); do
kver=$(echo "$file" | sed 's/.img//' | cut -d'-' -f'2-')
# Continue if kernel version is installed
[ -d /usr/lib/modules/"$kver" ] && continue
echo "Removed $file"
rm $file
done