File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package main
2+
3+ import (
4+ "github.com/dotcloud/docker/sysinit"
5+ )
6+
7+ var (
8+ GITCOMMIT string
9+ VERSION string
10+ )
11+
12+ func main () {
13+ // Running in init mode
14+ sysinit .SysInit ()
15+ return
16+ }
Original file line number Diff line number Diff line change 44 "flag"
55 "fmt"
66 "github.com/dotcloud/docker"
7+ "github.com/dotcloud/docker/sysinit"
78 "github.com/dotcloud/docker/utils"
89 "io/ioutil"
910 "log"
2324func main () {
2425 if selfPath := utils .SelfPath (); selfPath == "/sbin/init" || selfPath == "/.dockerinit" {
2526 // Running in init mode
26- docker .SysInit ()
27+ sysinit .SysInit ()
2728 return
2829 }
2930 // FIXME: Switch d and D ? (to be more sshd like)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package docker
33import (
44 "bytes"
55 "fmt"
6+ "github.com/dotcloud/docker/sysinit"
67 "github.com/dotcloud/docker/utils"
78 "io"
89 "log"
@@ -77,7 +78,7 @@ func init() {
7778
7879 // Hack to run sys init during unit testing
7980 if selfPath := utils .SelfPath (); selfPath == "/sbin/init" || selfPath == "/.dockerinit" {
80- SysInit ()
81+ sysinit . SysInit ()
8182 return
8283 }
8384
Original file line number Diff line number Diff line change 1- package docker
1+ package sysinit
22
33import (
44 "flag"
You can’t perform that action at this time.
0 commit comments