Don't label mqueue when mounting

mqueue shouldn't be labeled when mounting; otherwise, the mount will
fail.

Signed-off-by: Andy Goldstein <agoldste@redhat.com>
This commit is contained in:
Andy Goldstein 2015-03-11 14:30:26 -04:00
parent 9387ebb6ba
commit 2ca9dc306e
1 changed files with 4 additions and 0 deletions

View File

@ -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)