Commits

Michał Górny  committed 71c36c5

Support additional symlink names in symlinks bl.

  • Participants
  • Parent commits 564856a

Comments (0)

Files changed (1)

File ecleankernel/symlinks.py

 import os.path
 
 def get_vmlinuz_symlinks():
-	for p in ('/boot/vmlinuz', '/boot/vmlinuz.old'):
-		yield os.path.realpath(p)
+	for fn in ('vmlinuz', 'vmlinux', 'kernel', 'bzImage'):
+		for suffix in ('', '.old'):
+			f = '/boot/%s%s' % (fn, suffix)
+			if os.path.exists(f):
+				yield f