mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
fix: cgroup version
This commit is contained in:
parent
47e806a705
commit
3585531d30
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,6 @@ func buildSDKConfig(spec MachineSpec, paths machinePaths, network NetworkAllocat
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg := sdk.Config{
|
cfg := sdk.Config{
|
||||||
SocketPath: paths.SocketName,
|
|
||||||
KernelImagePath: spec.KernelImagePath,
|
KernelImagePath: spec.KernelImagePath,
|
||||||
KernelArgs: strings.TrimSpace(spec.KernelArgs),
|
KernelArgs: strings.TrimSpace(spec.KernelArgs),
|
||||||
Drives: drives.Build(),
|
Drives: drives.Build(),
|
||||||
|
|
@ -68,6 +67,7 @@ func buildSDKConfig(spec MachineSpec, paths machinePaths, network NetworkAllocat
|
||||||
JailerBinary: jailerBinaryPath,
|
JailerBinary: jailerBinaryPath,
|
||||||
ChrootBaseDir: paths.JailerBaseDir,
|
ChrootBaseDir: paths.JailerBaseDir,
|
||||||
ChrootStrategy: sdk.NewNaiveChrootStrategy(filepath.Clean(spec.KernelImagePath)),
|
ChrootStrategy: sdk.NewNaiveChrootStrategy(filepath.Clean(spec.KernelImagePath)),
|
||||||
|
CgroupVersion: "2",
|
||||||
},
|
},
|
||||||
VMID: string(spec.ID),
|
VMID: string(spec.ID),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue