Fix matchpathcon to only print the label
It was printing the path and the label, then trying to use that as the
label.
@@ -84,7 +84,7 @@ function os::test::extended::setup () {
# make sure the volume dir has the same label as we would apply to the default VOLUME_DIR
if selinuxenabled; then
- local label=$(matchpathcon -m dir /var/lib/openshift/openshift.local.volumes)
+ local label=$(matchpathcon -n -m dir /var/lib/openshift/openshift.local.volumes)
${sudo} chcon "${label}" ${VOLUME_DIR}
fi
CONFIG_VERSION=""
