policycoreutils: Only run setfiles if we found read-write filesystems to run it on
Only run setfiles if we have a R/W filesystem Signed-off-by: Laurent Bigonville <bigon@debian.org> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
2ad5471bd3
commit
c124df61ae
|
@ -234,7 +234,12 @@ then
|
||||||
done
|
done
|
||||||
FC=$TEMPFCFILE
|
FC=$TEMPFCFILE
|
||||||
fi
|
fi
|
||||||
|
if [ -n "${FILESYSTEMSRW}" ]; then
|
||||||
|
echo "Relabeling `echo ${FILESYSTEMSRW}`"
|
||||||
${SETFILES} -q ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE
|
${SETFILES} -q ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE
|
||||||
|
else
|
||||||
|
echo >&2 "fixfiles: No suitable file systems found"
|
||||||
|
fi
|
||||||
rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-* $TEMPFCFILE
|
rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-* $TEMPFCFILE
|
||||||
|
|
||||||
UNDEFINED=`get_undefined_type` || exit $?
|
UNDEFINED=`get_undefined_type` || exit $?
|
||||||
|
|
Loading…
Reference in New Issue