Skip to content

Commit

Permalink
cosalib: don't embed full directory paths for ZIP members
Browse files Browse the repository at this point in the history
Place the disk image at the root of the ZIP file, skipping its containing
directories.
  • Loading branch information
bgilbert committed Jun 29, 2023
1 parent f2eb092 commit 8967d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosalib/qemuvariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def mutate_image(self):
case "gzip":
rc = ['gzip', '-9c', uncompressed_path]
case "zip":
rc = ['zip', '-9', "-", uncompressed_path]
rc = ['zip', '-9j', "-", uncompressed_path]
case _:
raise ImageError(f"unsupported compression type: {self.compression}")
with open(final_img, "wb") as fh:
Expand Down

0 comments on commit 8967d3b

Please sign in to comment.