summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/jail
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-12-09 08:51:11 +0000
committermtm <mtm@FreeBSD.org>2003-12-09 08:51:11 +0000
commitfa2ae436faa592a9e37a39039777e89b2ca0a440 (patch)
tree5965010731763f7ee049a9bb86e35b1e7d3b12eb /etc/rc.d/jail
parentbca6895fb7ecfdd1516259f4d870cc110799e5e5 (diff)
downloadFreeBSD-src-fa2ae436faa592a9e37a39039777e89b2ca0a440.zip
FreeBSD-src-fa2ae436faa592a9e37a39039777e89b2ca0a440.tar.gz
o Rename devfs_link() to make_symlink() and turn it into a generic
symlinking routine. o Modify rc.d/jail to create its own symlink relative to the jail's filesystem
Diffstat (limited to 'etc/rc.d/jail')
-rw-r--r--etc/rc.d/jail12
1 files changed, 10 insertions, 2 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index 95837f2..019e148 100644
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -100,11 +100,19 @@ jail_start()
# Transitional symlink for old binaries
if [ ! -L ${jail_devdir}/log ]; then
- devfs_link ${jail_devdir} ../var/run/log log
+ __pwd="`pwd`"
+ cd "${jail_devdir}"
+ ln -sf ../var/run/log log
+ cd "$__pwd"
fi
+ # XXX - It seems symlinks don't work when there
+ # is a devfs(5) device of the same name.
# Jail console output
- devfs_link ${jail_devdir} ../var/log/console console
+ # __pwd="`pwd`"
+ # cd "${jail_devdir}"
+ # ln -sf ../var/log/console console
+ # cd "$__pwd"
fi
if checkyesno jail_fdescfs; then
info "Mounting fdescfs on ${jail_fdescdir}"
OpenPOWER on IntegriCloud