Explorar el Código

Do not error on relabel when relabel not supported

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff hace 8 años
padre
commit
ebfdfc5768
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      volume/volume.go

+ 4 - 0
volume/volume.go

@@ -156,6 +156,10 @@ func (m *MountPoint) Setup(mountLabel string, rootIDs idtools.IDPair, checkFun f
 		if err == nil {
 			if label.RelabelNeeded(m.Mode) {
 				if err = label.Relabel(m.Source, mountLabel, label.IsShared(m.Mode)); err != nil {
+					if err == syscall.ENOTSUP {
+						err = nil
+						return
+					}
 					path = ""
 					err = errors.Wrapf(err, "error setting label on mount source '%s'", m.Source)
 					return