diff --git a/src/aleph/vm/hypervisors/firecracker/microvm.py b/src/aleph/vm/hypervisors/firecracker/microvm.py index 904c42f4..d85b8007 100644 --- a/src/aleph/vm/hypervisors/firecracker/microvm.py +++ b/src/aleph/vm/hypervisors/firecracker/microvm.py @@ -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