summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-12-09 08:32:43 +0000
committermtm <mtm@FreeBSD.org>2003-12-09 08:32:43 +0000
commitdd252f1635fd784358975867b80072fb4bf686b9 (patch)
tree93f10b30b7884c92584ede84b6ed87f4747765f0 /etc/rc.d
parent2669c6047377fba1e6bbf1c2cf333e7c09b664f7 (diff)
downloadFreeBSD-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/rc.d')
-rw-r--r--etc/rc.d/jail8
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
OpenPOWER on IntegriCloud