Fix initrd optimization

master3.3
Mike Hiretsky 14 years ago
parent 1b48f1e4bb
commit 2230227154

@ -112,7 +112,7 @@ class KernelModules:
self.depModules)))
reRemove = re.compile("|".join(forceRemove))
return filter(lambda x: not reRemove.search(x),
map(lambda x:x.replace("_","-"),
map(lambda x:x.replace("-","_"),
allModules+list(needModulesName)))
class InitRamFs:
def __init__(self,initRamFsFile):
@ -184,7 +184,7 @@ class InitRamFs:
map(lambda x:(x[0],
x[1],
filter(lambda x:x.endswith(".ko") and
not x[:-3] in importantModules,
not x[:-3].replace('-','_') in importantModules,
x[2])),
os.walk(self.tmpPath))
# get full path for all delete modules

Loading…
Cancel
Save