1
0
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:
Maxim Devaev 2023-11-17 02:56:38 +02:00
parent 94237251d7
commit b6ff90bbb2
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@
/.build/
/.built.conf
/*.img
/*.img.sha1
/*.img.xz
/*.img.xz.sha1
/config.mk

View File

@ -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)
# =====