Signed-off-by: Michael Crosby <michael@docker.com>
| ... | ... |
@@ -20,8 +20,8 @@ import ( |
| 20 | 20 |
"github.com/docker/docker/engine" |
| 21 | 21 |
"github.com/docker/docker/image" |
| 22 | 22 |
"github.com/docker/docker/nat" |
| 23 |
+ "github.com/docker/docker/reexec" |
|
| 23 | 24 |
"github.com/docker/docker/runconfig" |
| 24 |
- "github.com/docker/docker/sysinit" |
|
| 25 | 25 |
"github.com/docker/docker/utils" |
| 26 | 26 |
) |
| 27 | 27 |
|
| ... | ... |
@@ -94,8 +94,7 @@ func init() {
|
| 94 | 94 |
os.Setenv("DOCKER_TMPDIR", unitTestDockerTmpdir)
|
| 95 | 95 |
|
| 96 | 96 |
// Hack to run sys init during unit testing |
| 97 |
- if selfPath := utils.SelfPath(); strings.Contains(selfPath, ".dockerinit") {
|
|
| 98 |
- sysinit.SysInit() |
|
| 97 |
+ if reexec.Init() {
|
|
| 99 | 98 |
return |
| 100 | 99 |
} |
| 101 | 100 |
|