|
|
|
@ -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
|
|
|
|
|