Browse code

Do not error on relabel when relabel not supported

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Brian Goff authored on 2017/06/27 06:29:24
Showing 1 changed files
... ...
@@ -156,6 +156,10 @@ func (m *MountPoint) Setup(mountLabel string, rootIDs idtools.IDPair, checkFun f
156 156
 		if err == nil {
157 157
 			if label.RelabelNeeded(m.Mode) {
158 158
 				if err = label.Relabel(m.Source, mountLabel, label.IsShared(m.Mode)); err != nil {
159
+					if err == syscall.ENOTSUP {
160
+						err = nil
161
+						return
162
+					}
159 163
 					path = ""
160 164
 					err = errors.Wrapf(err, "error setting label on mount source '%s'", m.Source)
161 165
 					return