diff --git a/src/vm.ts b/src/vm.ts index e22fb84..ed100ca 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -12,7 +12,7 @@ function containerPath(hostPath: string): string { return "/sandlot" + hostPath.slice(`${home}/.sandlot`.length) } if (hostPath.startsWith(`${home}/dev`)) { - return "/dev-host" + hostPath.slice(`${home}/dev`.length) + return "/host" + hostPath.slice(`${home}/dev`.length) } return hostPath } @@ -42,7 +42,7 @@ export async function ensure(log?: (msg: string) => void): Promise { // Create from scratch const home = homedir() log?.("Pulling image & creating container") - await $`container run -d --name ${CONTAINER_NAME} -m 4G --mount type=bind,source=${home}/dev,target=/dev-host,readonly -v ${home}/.sandlot:/sandlot ubuntu:24.04 sleep infinity`.quiet() + await $`container run -d --name ${CONTAINER_NAME} -m 4G --mount type=bind,source=${home}/dev,target=/host,readonly -v ${home}/.sandlot:/sandlot ubuntu:24.04 sleep infinity`.quiet() // Provision (as root) log?.("Installing packages")