new naming for gentoo installkernel

This commit is contained in:
Fredrik Eriksson 2024-07-13 21:52:05 +02:00
parent 2151f6f8f7
commit 22a2b4557b
Signed by: feffe
GPG Key ID: E6B5580B853D322B

View File

@ -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)