mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
setup groups and socket files on startup
This commit is contained in:
@@ -22,6 +22,7 @@ func NewConfig() *Config {
|
|||||||
"none",
|
"none",
|
||||||
"--restart=false",
|
"--restart=false",
|
||||||
"-g", "/var/lib/system-docker",
|
"-g", "/var/lib/system-docker",
|
||||||
|
"-G", "root",
|
||||||
"-H", DOCKER_SYSTEM_HOST,
|
"-H", DOCKER_SYSTEM_HOST,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@@ -3,6 +3,7 @@ package init
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -346,6 +347,7 @@ func RunInit() error {
|
|||||||
func(cfg *config.Config) error {
|
func(cfg *config.Config) error {
|
||||||
return createSymlinks(cfg, symlinks)
|
return createSymlinks(cfg, symlinks)
|
||||||
},
|
},
|
||||||
|
createGroups,
|
||||||
extractModules,
|
extractModules,
|
||||||
loadModules,
|
loadModules,
|
||||||
setResolvConf,
|
setResolvConf,
|
||||||
@@ -362,6 +364,7 @@ func RunInit() error {
|
|||||||
func(cfg *config.Config) error {
|
func(cfg *config.Config) error {
|
||||||
return createMounts(postMounts...)
|
return createMounts(postMounts...)
|
||||||
},
|
},
|
||||||
|
touchSocket,
|
||||||
remountRo,
|
remountRo,
|
||||||
sysInit,
|
sysInit,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user