|
|
@ -255,7 +255,7 @@ class varsShare:
|
|
|
|
filesWithType = map(lambda x:(x,ftype(x)), filelist)
|
|
|
|
filesWithType = map(lambda x:(x,ftype(x)), filelist)
|
|
|
|
return filter(lambda x:descr in x[1],filesWithType)
|
|
|
|
return filter(lambda x:descr in x[1],filesWithType)
|
|
|
|
|
|
|
|
|
|
|
|
def getInitrd(self,arch,shortname,chroot,kernel,suffix=""):
|
|
|
|
def getInitrd(self,arch,shortname,chroot,kernel,suffix="",notsuffix=""):
|
|
|
|
"""Get initrd for kernel"""
|
|
|
|
"""Get initrd for kernel"""
|
|
|
|
reInitrdVer = re.compile("(initrd|initramfs)-(.+?)(-install)?$",re.S)
|
|
|
|
reInitrdVer = re.compile("(initrd|initramfs)-(.+?)(-install)?$",re.S)
|
|
|
|
def initrd_version_by_name(filename):
|
|
|
|
def initrd_version_by_name(filename):
|
|
|
@ -278,7 +278,8 @@ class varsShare:
|
|
|
|
initramfsWithVer = \
|
|
|
|
initramfsWithVer = \
|
|
|
|
filter(lambda x: (kernelVersion in x[1] or
|
|
|
|
filter(lambda x: (kernelVersion in x[1] or
|
|
|
|
origKernelVer in x[1]) and \
|
|
|
|
origKernelVer in x[1]) and \
|
|
|
|
x[0].endswith(suffix),
|
|
|
|
x[0].endswith(suffix) and \
|
|
|
|
|
|
|
|
(not notsuffix or not x[0].endswith(notsuffix)),
|
|
|
|
map(lambda x:(x[0],initrd_version_by_name(x[0])),
|
|
|
|
map(lambda x:(x[0],initrd_version_by_name(x[0])),
|
|
|
|
initramfsFiles))
|
|
|
|
initramfsFiles))
|
|
|
|
if initramfsWithVer:
|
|
|
|
if initramfsWithVer:
|
|
|
|