mirror of
https://github.com/pikvm/pi-builder.git
synced 2025-04-19 06:22:16 +03:00
fixed sha1 img perms
This commit is contained in:
parent
94237251d7
commit
b6ff90bbb2
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
||||
/.build/
|
||||
/.built.conf
|
||||
/*.img
|
||||
/*.img.sha1
|
||||
/*.img.xz
|
||||
/*.img.xz.sha1
|
||||
/config.mk
|
||||
|
@ -85,7 +85,7 @@ def _install_image(devfs_prefix: str, rootfs_path: str, image_path: str, compres
|
||||
sha1_path = image_path + ".sha1"
|
||||
with open(sha1_path, "w") as file:
|
||||
file.write(sha1)
|
||||
shutil.copystat(image_path, sha1_path)
|
||||
shutil.copymode(image_path, sha1_path)
|
||||
|
||||
|
||||
# =====
|
||||
|
Loading…
x
Reference in New Issue
Block a user