Browse Source

Rename all cases of "docker-init" to "dockerinit" for consistency

Tianon Gravi 11 years ago
parent
commit
cf86e2bb22
4 changed files with 3 additions and 3 deletions
  1. 1 1
      container.go
  2. 0 0
      dockerinit/dockerinit.go
  3. 1 1
      lxc_template.go
  4. 1 1
      sysinit/sysinit.go

+ 1 - 1
container.go

@@ -1119,7 +1119,7 @@ func (container *Container) releaseNetwork() {
 	container.NetworkSettings = &NetworkSettings{}
 	container.NetworkSettings = &NetworkSettings{}
 }
 }
 
 
-// FIXME: replace this with a control socket within docker-init
+// FIXME: replace this with a control socket within dockerinit
 func (container *Container) waitLxc() error {
 func (container *Container) waitLxc() error {
 	for {
 	for {
 		output, err := exec.Command("lxc-info", "-n", container.ID).CombinedOutput()
 		output, err := exec.Command("lxc-info", "-n", container.ID).CombinedOutput()

+ 0 - 0
docker-init/docker-init.go → dockerinit/dockerinit.go


+ 1 - 1
lxc_template.go

@@ -94,7 +94,7 @@ lxc.mount.entry = devpts {{$ROOTFS}}/dev/pts devpts newinstance,ptmxmode=0666,no
 #lxc.mount.entry = varlock {{$ROOTFS}}/var/lock tmpfs size=1024k,nosuid,nodev,noexec 0 0
 #lxc.mount.entry = varlock {{$ROOTFS}}/var/lock tmpfs size=1024k,nosuid,nodev,noexec 0 0
 lxc.mount.entry = shm {{$ROOTFS}}/dev/shm tmpfs size=65536k,nosuid,nodev,noexec 0 0
 lxc.mount.entry = shm {{$ROOTFS}}/dev/shm tmpfs size=65536k,nosuid,nodev,noexec 0 0
 
 
-# Inject docker-init
+# Inject dockerinit
 lxc.mount.entry = {{.SysInitPath}} {{$ROOTFS}}/.dockerinit none bind,ro 0 0
 lxc.mount.entry = {{.SysInitPath}} {{$ROOTFS}}/.dockerinit none bind,ro 0 0
 
 
 # In order to get a working DNS environment, mount bind (ro) the host's /etc/resolv.conf into the container
 # In order to get a working DNS environment, mount bind (ro) the host's /etc/resolv.conf into the container

+ 1 - 1
sysinit/sysinit.go

@@ -97,7 +97,7 @@ func executeProgram(name string, args []string) {
 // up the environment before running the actual process
 // up the environment before running the actual process
 func SysInit() {
 func SysInit() {
 	if len(os.Args) <= 1 {
 	if len(os.Args) <= 1 {
-		fmt.Println("You should not invoke docker-init manually")
+		fmt.Println("You should not invoke dockerinit manually")
 		os.Exit(1)
 		os.Exit(1)
 	}
 	}
 	var u = flag.String("u", "", "username or uid")
 	var u = flag.String("u", "", "username or uid")