Re-work non-persistent filesystem detection as it was not possible to

detect /dev/md backed mfs filesystems that way.

Differential Revision:	https://reviews.freebsd.org/D1163
Approved by:	ian
This commit is contained in:
Mark Felder 2014-11-18 13:38:09 +00:00
parent e122dfc1ce
commit dfe9215b4e

View File

@ -604,14 +604,13 @@ fetchupgrade_check_params () {
echo ${WORKDIR}
exit 1
fi
for i in tmpfs mdmfs; do
if df -t ${i} ${WORKDIR} >/dev/null 2>1; then
echo -n "`basename $0`: "
echo -n "${_WORKDIR_bad2}"
echo ${WORKDIR}
exit 1
fi
done
case `df -T ${WORKDIR}` in */dev/md[0-9]* | *tmpfs*)
echo -n "`basename $0`: "
echo -n "${_WORKDIR_bad2}"
echo ${WORKDIR}
exit 1
;;
esac
chmod 700 ${WORKDIR}
cd ${WORKDIR} || exit 1