Check for failure on /dev/mqueue and try again without labeling

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2015-09-28 11:02:37 -04:00
parent b4dcb75503
commit cab342f0de
1 changed files with 4 additions and 1 deletions

View File

@ -113,8 +113,11 @@ func mountToRootfs(m *configs.Mount, rootfs, mountLabel string) error {
return err
}
if err := mountPropagate(m, rootfs, mountLabel); err != nil {
// older kernels do not support labeling of /dev/mqueue
if err := mountPropagate(m, rootfs, ""); err != nil {
return err
}
}
return label.SetFileLabel(dest, mountLabel)
case "tmpfs":
stat, err := os.Stat(dest)