Only check for 'nodev' in fstab if that file exists

Submitted by:	sam
This commit is contained in:
Doug Barton 2009-01-02 00:37:59 +00:00
parent a740208973
commit e0e184799c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186689

View File

@ -353,14 +353,16 @@ case "${AUTO_UPGRADE}" in
;;
esac
if grep -q nodev ${DESTDIR}/etc/fstab; then
echo ''
echo "*** You have the deprecated 'nodev' option in ${DESTDIR}/etc/fstab."
echo " This can prevent your system from mounting the filesystem on reboot."
echo " Please update your fstab before continuing."
echo " See fstab(5) for more information."
echo ''
exit 1
if [ -e "${DESTDIR}/etc/fstab" ]; then
if grep -q nodev ${DESTDIR}/etc/fstab; then
echo ''
echo "*** You have the deprecated 'nodev' option in ${DESTDIR}/etc/fstab."
echo " This can prevent the filesystem from being mounted on reboot."
echo " Please update your fstab before continuing."
echo " See fstab(5) for more information."
echo ''
exit 1
fi
fi
echo ''