new naming for gentoo installkernel
This commit is contained in:
parent
2151f6f8f7
commit
22a2b4557b
@ -224,7 +224,7 @@ def pkg_upgrade():
|
|||||||
log.error('keep_kernels cannot be less than one; falling back to default')
|
log.error('keep_kernels cannot be less than one; falling back to default')
|
||||||
keep_kernels = 4
|
keep_kernels = 4
|
||||||
for root, dirs, files in os.walk('/boot'):
|
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(
|
match = sorted(
|
||||||
[f for f in files if f.startswith(f'{sysfile}-')],
|
[f for f in files if f.startswith(f'{sysfile}-')],
|
||||||
reverse=True)
|
reverse=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user