diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-09 08:32:43 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-09 08:32:43 +0000 |
commit | dd252f1635fd784358975867b80072fb4bf686b9 (patch) | |
tree | 93f10b30b7884c92584ede84b6ed87f4747765f0 /etc | |
parent | 2669c6047377fba1e6bbf1c2cf333e7c09b664f7 (diff) | |
download | FreeBSD-src-dd252f1635fd784358975867b80072fb4bf686b9.zip FreeBSD-src-dd252f1635fd784358975867b80072fb4bf686b9.tar.gz |
If fdescfs(5) is mounted in a jail unmount it before devfs(5).
Submitted by: "Scot W. Hetzel" <hetzelsw@westbend.net>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/jail | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index d3059a20..95837f2 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -138,14 +138,16 @@ jail_stop() for _jail in ${jail_list} do init_variables $_jail + if checkyesno jail_fdescfs; then + if [ -d ${jail_fdescdir} ] ; then + umount -f ${jail_fdescdir} >/dev/null 2>&1 + fi + fi if checkyesno jail_devfs; then if [ -d ${jail_devdir} ] ; then umount -f ${jail_devdir} >/dev/null 2>&1 fi fi - if checkyesno jail_fdescfs; then - umount -f ${jail_fdescdir} >/dev/null 2>&1 - fi if checkyesno jail_procfs; then if [ -d ${jail_procdir} ] ; then umount -f ${jail_procdir} >/dev/null 2>&1 |