Restrict VM mount to ~/dev instead of entire home directory

This commit is contained in:
Chris Wanstrath 2026-02-18 16:01:21 -08:00
parent ef554b694e
commit a438391d70

View File

@ -15,7 +15,7 @@ export async function ensure(): Promise<void> {
// Create from scratch
const home = homedir()
await $`limactl create --name=${VM_NAME} --mount=${home}:w --mount-writable template:ubuntu-24.04`.quiet()
await $`limactl create --name=${VM_NAME} --mount=${home}/dev:w template:ubuntu-24.04`.quiet()
await $`limactl start ${VM_NAME}`.quiet()
// Provision