Displaying 1 result from an estimated 1 matches for "efi_initrd_csum".
2010 Feb 19
0
[PATCH] Help reduce size of iso by symlinking initrd's from isolinux/ and EFI/boot if md5's match
...d5()
+ f = open(initrd_file,"r")
+ while 1:
+ chunk = f.read(65536)
+ if not chunk:
+ break
+ m.update(chunk)
+ checksum = m.hexdigest()
+ return checksum
+ try:
+ efi_initrd_csum = initrd_check(efi_initrd)
+ isolinux_initrd_csum = initrd_check(isolinux_initrd)
+ if efi_initrd_csum == isolinux_initrd_csum:
+ os.remove(efi_initrd)
+ os.symlink(isolinux_initrd,efi_initrd)
+ except:
+ pass
editor.unm...