Add --enable-kernel-install to container start
This commit is contained in:
parent
7d7b621423
commit
d11df74ecd
|
|
@ -236,9 +236,9 @@ export async function start(): Promise<void> {
|
||||||
export async function ensure(log?: (msg: string) => void): Promise<void> {
|
export async function ensure(log?: (msg: string) => void): Promise<void> {
|
||||||
requireContainer()
|
requireContainer()
|
||||||
|
|
||||||
// Ensure the container daemon is running
|
// Ensure the container daemon is running (--enable-kernel-install skips interactive prompt)
|
||||||
if (DEBUG) await $`container system start`.nothrow()
|
if (DEBUG) await $`container system start --enable-kernel-install`.nothrow()
|
||||||
else await $`container system start`.nothrow().quiet()
|
else await $`container system start --enable-kernel-install`.nothrow().quiet()
|
||||||
|
|
||||||
const s = await status()
|
const s = await status()
|
||||||
if (s === "running") return
|
if (s === "running") return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user