Add --enable-kernel-install to container start

This commit is contained in:
Chris Wanstrath 2026-02-24 10:23:57 -08:00
parent 7d7b621423
commit d11df74ecd

View File

@ -236,9 +236,9 @@ export async function start(): Promise<void> {
export async function ensure(log?: (msg: string) => void): Promise<void> {
requireContainer()
// Ensure the container daemon is running
if (DEBUG) await $`container system start`.nothrow()
else await $`container system start`.nothrow().quiet()
// Ensure the container daemon is running (--enable-kernel-install skips interactive prompt)
if (DEBUG) await $`container system start --enable-kernel-install`.nothrow()
else await $`container system start --enable-kernel-install`.nothrow().quiet()
const s = await status()
if (s === "running") return