mirror of
https://github.com/rancher/os.git
synced 2025-07-04 18:46:15 +00:00
Fix more issues with state management
This commit is contained in:
parent
76e5cf8d50
commit
b0c332f510
Binary file not shown.
@ -14,7 +14,7 @@ func NewConfig() *Config {
|
|||||||
ImagesPattern: "images*.tar",
|
ImagesPattern: "images*.tar",
|
||||||
StateRequired: false,
|
StateRequired: false,
|
||||||
StateDev: "LABEL=RANCHER_STATE",
|
StateDev: "LABEL=RANCHER_STATE",
|
||||||
StateDevFSType: "ext4",
|
StateDevFSType: "auto",
|
||||||
SysInit: "/sbin/init-sys",
|
SysInit: "/sbin/init-sys",
|
||||||
SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none"},
|
SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none"},
|
||||||
UserInit: "/sbin/init-user",
|
UserInit: "/sbin/init-user",
|
||||||
@ -69,7 +69,6 @@ func NewConfig() *Config {
|
|||||||
"-d",
|
"-d",
|
||||||
"--rm",
|
"--rm",
|
||||||
"--privileged",
|
"--privileged",
|
||||||
//"--volume", "/:/host:ro",
|
|
||||||
"--volume", "/lib/modules:/lib/modules:ro",
|
"--volume", "/lib/modules:/lib/modules:ro",
|
||||||
"--volume", "/usr/bin/docker:/usr/bin/docker:ro",
|
"--volume", "/usr/bin/docker:/usr/bin/docker:ro",
|
||||||
"--volume", "/init:/usr/bin/system-docker:ro",
|
"--volume", "/init:/usr/bin/system-docker:ro",
|
||||||
@ -91,7 +90,6 @@ func NewConfig() *Config {
|
|||||||
"-d",
|
"-d",
|
||||||
"--rm",
|
"--rm",
|
||||||
"--privileged",
|
"--privileged",
|
||||||
//"--volume", "/:/host",
|
|
||||||
"--volume", "/lib/modules:/lib/modules:ro",
|
"--volume", "/lib/modules:/lib/modules:ro",
|
||||||
"--volume", "/usr/bin/docker:/usr/bin/docker:ro",
|
"--volume", "/usr/bin/docker:/usr/bin/docker:ro",
|
||||||
"--volume", "/init:/usr/bin/system-docker:ro",
|
"--volume", "/init:/usr/bin/system-docker:ro",
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
|
"syscall"
|
||||||
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
dockerClient "github.com/fsouza/go-dockerclient"
|
dockerClient "github.com/fsouza/go-dockerclient"
|
||||||
@ -186,10 +187,11 @@ func sysInit() error {
|
|||||||
initFuncs := []config.InitFunc{
|
initFuncs := []config.InitFunc{
|
||||||
loadImages,
|
loadImages,
|
||||||
runContainers,
|
runContainers,
|
||||||
//func(cfg *config.Config) error {
|
func(cfg *config.Config) error {
|
||||||
// syscall.Sync()
|
//TODO: not totally sure why we need this.
|
||||||
// return nil
|
syscall.Sync()
|
||||||
//},
|
return nil
|
||||||
|
},
|
||||||
//launchConsole,
|
//launchConsole,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user