瀏覽代碼

Remove unsued sysinit package

Signed-off-by: Michael Crosby <michael@docker.com>
Michael Crosby 11 年之前
父節點
當前提交
29af9c14e4
共有 2 個文件被更改,包括 0 次插入26 次删除
  1. 0 4
      sysinit/README.md
  2. 0 22
      sysinit/sysinit.go

+ 0 - 4
sysinit/README.md

@@ -1,4 +0,0 @@
-Sys Init code
-
-This code is run INSIDE the container and is responsible for setting
-up the environment before running the actual process

+ 0 - 22
sysinit/sysinit.go

@@ -1,22 +0,0 @@
-package sysinit
-
-import (
-	"fmt"
-	"os"
-	"runtime"
-)
-
-// Sys Init code
-// This code is run INSIDE the container and is responsible for setting
-// up the environment before running the actual process
-func SysInit() {
-	// The very first thing that we should do is lock the thread so that other
-	// system level options will work and not have issues, i.e. setns
-	runtime.LockOSThread()
-
-	if len(os.Args) <= 1 {
-		fmt.Println("You should not invoke dockerinit manually")
-		os.Exit(1)
-	}
-
-}