Only perform mount labelling when necessary
Do label mqueue when mounting it with label failed/not supported. Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
This commit is contained in:
parent
5439bd2d95
commit
55aabc142c
|
@ -140,8 +140,9 @@ func mountToRootfs(m *configs.Mount, rootfs, mountLabel string) error {
|
|||
if err := mountPropagate(m, rootfs, ""); err != nil {
|
||||
return err
|
||||
}
|
||||
return label.SetFileLabel(dest, mountLabel)
|
||||
}
|
||||
return label.SetFileLabel(dest, mountLabel)
|
||||
return nil
|
||||
case "tmpfs":
|
||||
stat, err := os.Stat(dest)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue