diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-09 08:51:11 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-09 08:51:11 +0000 |
commit | fa2ae436faa592a9e37a39039777e89b2ca0a440 (patch) | |
tree | 5965010731763f7ee049a9bb86e35b1e7d3b12eb /etc/rc.d/jail | |
parent | bca6895fb7ecfdd1516259f4d870cc110799e5e5 (diff) | |
download | FreeBSD-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/jail | 12 |
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}" |