Skip to content

Commit

Permalink
Update comment src/aleph/vm/hypervisors/firecracker/microvm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Herter <git@hugoherter.com>
  • Loading branch information
olethanh and hoh authored Sep 2, 2024
1 parent c9acb74 commit 3d52796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/vm/hypervisors/firecracker/microvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ def enable_file_rootfs(self, path_on_host: Path) -> Path:
logger.debug(f"File {jailer_path_on_host} already exists")
except OSError as err:
if err.errno == errno.EXDEV:
# Invalid cross-device link:
# cannot make hard link between partition. Make a copy instead
# Invalid cross-device link: cannot make hard link between partition.
# In this case, copy the file instead:
shutil.copyfile(path_on_host, f"{self.jailer_path}/{jailer_path_on_host}")
else:
raise
Expand Down

0 comments on commit 3d52796

Please sign in to comment.