mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
pentoo-updater: warn for too many kernel modules
This commit is contained in:
parent
8dc2d5d8ba
commit
e086efaff8
1 changed files with 4 additions and 0 deletions
|
|
@ -852,6 +852,10 @@ umount_boot
|
|||
if [ "$(find /usr/src/ -mindepth 1 -maxdepth 1 -type d | grep -c '/usr/src/linux-*')" -gt 2 ]; then
|
||||
printf 'Found more than two sets of kernel sources, you may wish to manually clean out the old ones in "/usr/src/linux-*".\n'
|
||||
fi
|
||||
# Warn users who have way too many modules
|
||||
if [ "$(find /lib/modules/ -mindepth 1 -maxdepth 1 -type d | grep -c '/lib/modules/')" -gt 2 ]; then
|
||||
printf 'Found more than two sets of kernel modules, you may wish to manually clean out the old ones in "/lib/modules/".\n'
|
||||
fi
|
||||
|
||||
exit_code="0"
|
||||
if [ "${UNSAFE_BOOT}" = "1" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue