Update patch.py

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-02-22 15:34:42 +08:00 committed by GitHub
parent e4167afbec
commit 898d1c1789
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -277,6 +277,8 @@ def patch_kernel(data:bytes,key_dict):
def patch_squashfs(path,key_dict):
for root, dirs, files in os.walk(path):
for file in files:
if file =='loader':
continue
file = os.path.join(root,file)
if os.path.isfile(file):
data = open(file,'rb').read()