Skip to content

Commit

Permalink
Update Some Code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Apr 5, 2024
1 parent e0d2213 commit 669eb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cyrus.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ def recompress(source, fsconfig, contexts, dumpinfo, flag=8):
timestamp = str(int(time.time())) if SETUP_MANIFEST["UTC"].lower() == "live" else SETUP_MANIFEST["UTC"]
read = "ro"
RESIZE2RW = False
fsize = None
SPARSE = (SETUP_MANIFEST["REPACK_SPARSE_IMG"] == "1")
if dumpinfo:
(fsize, dsize, inodes, block_size, blocks, per_group, mount_point) = LOAD_IMAGE_JSON(dumpinfo, source)
Expand All @@ -764,7 +765,7 @@ def recompress(source, fsconfig, contexts, dumpinfo, flag=8):
mount_point = "/"
if SETUP_MANIFEST["REPACK_EROFS_IMG"] == "0":
fs_variant = "ext4"
if SETUP_MANIFEST["REPACK_TO_RW"] == "1" and SETUP_MANIFEST["IS_DYNAMIC"] == "1":
if (SETUP_MANIFEST["REPACK_TO_RW"] == "1" and SETUP_MANIFEST["IS_DYNAMIC"] == "1") or not fsize:
RESIZE2RW = True
read = "rw"
block_size = 4096
Expand Down

0 comments on commit 669eb1a

Please sign in to comment.