Skip to content

Commit

Permalink
otaclient.persist_file_handling: fix swapfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Mar 30, 2024
1 parent 68c0073 commit c7f14dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otaclient/app/ota_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _process_persistents(self):

# NOTE(20240220): fast fix for handling swapfile
if str(_per_fpath) in ["/swapfile", "/swap.img"]:
_new_swapfile = standby_slot_mp / _per_fpath
_new_swapfile = standby_slot_mp / _per_fpath.relative_to("/")
try:
_swapfile_size = get_file_size(_per_fpath, units="MiB")
assert _swapfile_size is not None, f"{_per_fpath} doesn't exist"
Expand Down

0 comments on commit c7f14dd

Please sign in to comment.