mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
Merge pull request #55 from chenxiaolong/zip_cd_reproducibility
avbroot/boot.py: Mark otacerts.zip entries as created on Unix
This commit is contained in:
@@ -205,6 +205,8 @@ class OtaCertPatch(BootImagePatch):
|
||||
# Use zeroed-out metadata to ensure the archive is bit for
|
||||
# bit reproducible across runs.
|
||||
info = zipfile.ZipInfo('ota.x509.pem')
|
||||
# Mark entry as created on Unix for reproducibility
|
||||
info.create_system = 3
|
||||
with (
|
||||
z.open(info, 'w') as f_out,
|
||||
open(self.cert_ota, 'rb') as f_in,
|
||||
|
||||
Reference in New Issue
Block a user