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