Skip to content

Commit

Permalink
Strip .img suffix from initramfses.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Nov 15, 2011
1 parent eca88d5 commit 3efffaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecleankernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def find_kernels():
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:
Expand Down

0 comments on commit 3efffaf

Please sign in to comment.