91a3a95385
The basepath is only used on Linux, so no need to call it on other platforms. SetBasePath was already stubbed out on other platforms, but "osl" was still imported in various places where it was not actually used, so trying to reduce imports to get a better picture of what parts are used (and not used). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
276 B
Go
11 lines
276 B
Go
package config
|
|
|
|
import "github.com/docker/docker/libnetwork/osl"
|
|
|
|
// optionExecRoot on Linux sets both the controller's ExecRoot and osl.basePath.
|
|
func optionExecRoot(execRoot string) Option {
|
|
return func(c *Config) {
|
|
c.ExecRoot = execRoot
|
|
osl.SetBasePath(execRoot)
|
|
}
|
|
}
|