Remove the bind mount for dev/console which override the mknod/label

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
This commit is contained in:
Guillaume J. Charmes 2014-05-13 11:59:27 -07:00
parent 4c0f535f69
commit 7eea7dc6ba
1 changed files with 0 additions and 3 deletions

View File

@ -40,9 +40,6 @@ func Setup(rootfs, consolePath, mountLabel string) error {
if err := label.SetFileLabel(consolePath, mountLabel); err != nil { if err := label.SetFileLabel(consolePath, mountLabel); err != nil {
return fmt.Errorf("set file label %s %s", dest, err) return fmt.Errorf("set file label %s %s", dest, err)
} }
if err := system.Mount(consolePath, dest, "bind", syscall.MS_BIND, ""); err != nil {
return fmt.Errorf("bind %s to %s %s", consolePath, dest, err)
}
return nil return nil
} }