diff --git a/sau/gentoo.py b/sau/gentoo.py index 1ae347a..3280c80 100644 --- a/sau/gentoo.py +++ b/sau/gentoo.py @@ -224,7 +224,7 @@ def pkg_upgrade(): log.error('keep_kernels cannot be less than one; falling back to default') keep_kernels = 4 for root, dirs, files in os.walk('/boot'): - for sysfile in ['config', 'initramfs', 'System.map', 'vmlinuz']: + for sysfile in ['config', 'initramfs', 'System.map', 'vmlinuz', 'kernel']: match = sorted( [f for f in files if f.startswith(f'{sysfile}-')], reverse=True)