Explicitly mount the NFS images ro, instead of relying on the server to

export it ro.  This saves thrashing the server if we accidentally try to
rm -rf a NFS mount (e.g. because a chroot cleanup failed).
This commit is contained in:
Kris Kennaway 2006-04-16 02:29:36 +00:00
parent 30e2a90b43
commit 38bfaf4774
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159674

View file

@ -11,7 +11,7 @@ mount_fs()
if [ ${disconnected} = 1 ]; then
mount -t nullfs -r ${fs} ${mntpt}
else
mount -o nfsv3,intr -r ${master}:${fs} ${mntpt}
mount_nfs -o ro -3 -i ${master}:${fs} ${mntpt}
fi
}