search for: initrd_fil

Displaying 1 result from an estimated 1 matches for "initrd_fil".

Did you mean: initrd_file
2010 Feb 19
0
[PATCH] Help reduce size of iso by symlinking initrd's from isolinux/ and EFI/boot if md5's match
...ll() + # reduce iso size by symlinking initrd's if they match + efi_initrd = "%s/EFI/boot/initrd0.img" % editor._LiveImageCreatorBase__isodir + isolinux_initrd = "%s/isolinux/initrd0.img" % editor._LiveImageCreatorBase__isodir + + def initrd_check(initrd_file): + m = hashlib.md5() + f = open(initrd_file,"r") + while 1: + chunk = f.read(65536) + if not chunk: + break + m.update(chunk) + checksum = m.hexdigest() + return checks...