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 <[email protected]>
  • Loading branch information
olethanh and hoh committed Sep 2, 2024
1 parent c9acb74 commit 15214f4
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:

Check warning on line 332 in src/aleph/vm/hypervisors/firecracker/microvm.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/hypervisors/firecracker/microvm.py#L332

Added line #L332 was not covered by tests
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}")

Check warning on line 336 in src/aleph/vm/hypervisors/firecracker/microvm.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/hypervisors/firecracker/microvm.py#L336

Added line #L336 was not covered by tests
else:
raise

Check warning on line 338 in src/aleph/vm/hypervisors/firecracker/microvm.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/hypervisors/firecracker/microvm.py#L338

Added line #L338 was not covered by tests
Expand Down

0 comments on commit 15214f4

Please sign in to comment.