1
0
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:
Darren Shepherd
2015-04-04 10:17:10 -07:00
parent 3282192d97
commit 1de6e898a7
2 changed files with 4 additions and 0 deletions

View File

@@ -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,
}, },
}, },

View File

@@ -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,
} }