Commits

Michał Górny committed 3efffaf

Strip .img suffix from initramfses.

Comments (0)

Files changed (1)

ecleankernel/kernel.py

 			kv = m[len(g):]
 			if cat == 'modules' and m in paths:
 				continue
+			elif cat == 'initramfs' and kv.endswith('.img'):
+				kv = kv[:-4]
+
 			path = paths[m]
 			newk = kernels[kv]
 			try: