Explorar o código

Do not error on relabel when relabel not supported

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff %!s(int64=8) %!d(string=hai) anos
pai
achega
ebfdfc5768
Modificáronse 1 ficheiros con 4 adicións e 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