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:
parent
e122dfc1ce
commit
dfe9215b4e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user