From 513bdd96d7234f6f561d60a5f7956c040564278b Mon Sep 17 00:00:00 2001 From: hrs Date: Sat, 12 Oct 2013 17:27:59 +0000 Subject: - Add mount.fdescfs parameter to jail(8). This is similar to mount.devfs but mounts fdescfs. The mount happens just after mount.devfs. - rc.d/jail now displays whole error message from jail(8) when a jail fails to start. Approved by: re (gjb) --- etc/rc.d/jail | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/rc.d') diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 63e489a..c935fac 100755 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -226,8 +226,7 @@ parse_options() eval : \${jail_${_j}_fdescfs_enable:=${jail_fdescfs_enable:-NO}} if checkyesno jail_${_j}_fdescfs_enable; then - echo " mount += " \ - "\"fdescfs ${_rootdir%/}/dev/fd fdescfs rw 0 0\";" + echo " mount.fdescfs;" fi eval : \${jail_${_j}_procfs_enable:=${jail_procfs_enable:-NO}} if checkyesno jail_${_j}_procfs_enable; then @@ -438,7 +437,7 @@ jail_start() echo -n " ${_hostname:-${_jail}}" else echo " cannot start jail \"${_hostname:-${jail}}\": " - tail +2 $_tmp + cat $_tmp fi rm -f $_tmp done -- cgit v1.1