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:
parent
9387ebb6ba
commit
2ca9dc306e
|
@ -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