Update patch.py

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-09-19 01:03:56 +08:00 committed by GitHub
parent e2debac366
commit f55fba6699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -329,8 +329,9 @@ def patch_squashfs(path,key_dict):
patch_loader(file)
continue
if _file =='BOOTX64.EFI':
print(f'patch {file} ...')
data = open(file,'rb').read()
data = patch_kernel(data)
data = patch_kernel(data,key_dict)
open(file,'wb').write(data)
continue
data = open(file,'rb').read()