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:
parent
30e2a90b43
commit
38bfaf4774
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159674
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue