This commit is contained in:
a-kenji
2024-03-25 14:53:23 +01:00
parent e6519a5d6b
commit 44abddb666
2 changed files with 5 additions and 2 deletions

View File

@@ -121,10 +121,13 @@ def run_vm(
cachedir = Path(cache_tmp.name) cachedir = Path(cache_tmp.name)
if socketdir is None: if socketdir is None:
log.debug("Creating Socketdir")
socket_tmp = TemporaryDirectory() socket_tmp = TemporaryDirectory()
socketdir = Path(socket_tmp.name) socketdir = Path(socket_tmp.name)
else:
log.debug("Not creating socketdir.")
log.debug(f"Socketdir: {socketdir}")
# TODO: We should get this from the vm argument
nixos_config = build_vm(machine, cachedir, nix_options) nixos_config = build_vm(machine, cachedir, nix_options)
state_dir = vm_state_dir(str(vm.flake_url), machine.name) state_dir = vm_state_dir(str(vm.flake_url), machine.name)

View File

@@ -20,7 +20,7 @@ def start_virtiofsd(socket_path: Path) -> Iterator[None]:
"strace", "strace",
"-f", "-f",
"-o", "-o",
"/tmp/org.clan.cli/strace.log", "/tmp/clan-strace.log",
"virtiofsd", "virtiofsd",
"--socket-path", "--socket-path",
str(socket_path), str(socket_path),