mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-26 05:49:58 +00:00
Merge branch 'toolkit_no_pivot' into 'master'
add no-pivot option to toolkit See merge request nvidia/container-toolkit/toolkit!3
This commit is contained in:
commit
60f165ad69
@ -26,6 +26,7 @@ type CLIConfig struct {
|
|||||||
Debug *string `toml:"debug"`
|
Debug *string `toml:"debug"`
|
||||||
Ldcache *string `toml:"ldcache"`
|
Ldcache *string `toml:"ldcache"`
|
||||||
LoadKmods bool `toml:"load-kmods"`
|
LoadKmods bool `toml:"load-kmods"`
|
||||||
|
NoPivot bool `toml:"no-pivot"`
|
||||||
NoCgroups bool `toml:"no-cgroups"`
|
NoCgroups bool `toml:"no-cgroups"`
|
||||||
User *string `toml:"user"`
|
User *string `toml:"user"`
|
||||||
Ldconfig *string `toml:"ldconfig"`
|
Ldconfig *string `toml:"ldconfig"`
|
||||||
@ -49,6 +50,7 @@ func getDefaultHookConfig() (config HookConfig) {
|
|||||||
Debug: nil,
|
Debug: nil,
|
||||||
Ldcache: nil,
|
Ldcache: nil,
|
||||||
LoadKmods: true,
|
LoadKmods: true,
|
||||||
|
NoPivot: false,
|
||||||
NoCgroups: false,
|
NoCgroups: false,
|
||||||
User: nil,
|
User: nil,
|
||||||
Ldconfig: nil,
|
Ldconfig: nil,
|
||||||
|
@ -101,6 +101,9 @@ func doPrestart() {
|
|||||||
if cli.LoadKmods {
|
if cli.LoadKmods {
|
||||||
args = append(args, "--load-kmods")
|
args = append(args, "--load-kmods")
|
||||||
}
|
}
|
||||||
|
if cli.NoPivot {
|
||||||
|
args = append(args, "--no-pivot")
|
||||||
|
}
|
||||||
if *debugflag {
|
if *debugflag {
|
||||||
args = append(args, "--debug=/dev/stderr")
|
args = append(args, "--debug=/dev/stderr")
|
||||||
} else if cli.Debug != nil {
|
} else if cli.Debug != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user