Merge pull request #444 from ncdc/dont-label-mqueue
Don't label mqueue when mounting
This commit is contained in:
commit
aa10040b57
|
@ -104,6 +104,10 @@ func mount(m *configs.Mount, rootfs, mountLabel string) error {
|
|||
if err := os.MkdirAll(dest, 0755); err != nil && !os.IsExist(err) {
|
||||
return err
|
||||
}
|
||||
if m.Device == "mqueue" {
|
||||
// mqueue should not be labeled, otherwise the mount will fail
|
||||
data = ""
|
||||
}
|
||||
return syscall.Mount(m.Source, dest, m.Device, uintptr(m.Flags), data)
|
||||
case "bind":
|
||||
stat, err := os.Stat(m.Source)
|
||||
|
|
Loading…
Reference in New Issue