fix the --no-pivot flag being ignored by ctr tasks start

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2022-10-13 11:50:20 +08:00
parent 99ee82d0b6
commit 48daccb4dd
3 changed files with 7 additions and 5 deletions

View File

@@ -34,11 +34,11 @@ import (
"golang.org/x/sys/unix"
)
func init() {
startCommand.Flags = append(startCommand.Flags, cli.BoolFlag{
var platformStartFlags = []cli.Flag{
cli.BoolFlag{
Name: "no-pivot",
Usage: "disable use of pivot-root (linux only)",
})
},
}
// HandleConsoleResize resizes the console