Revision: 8914
http://freenas.svn.sourceforge.net/freenas/?rev=8914&view=rev
Author: jhixson
Date: 2011-12-01 22:38:08 +0000 (Thu, 01 Dec 2011)
Log Message:
-----------
Remove duplicate devfs entry and create fstab entry for nullfs mount.
Modified Paths:
--------------
trunk/nanobsd/Files/etc/rc.d/ix-jail
Modified: trunk/nanobsd/Files/etc/rc.d/ix-jail
===================================================================
--- trunk/nanobsd/Files/etc/rc.d/ix-jail 2011-12-01 22:36:23 UTC (rev 8913)
+++ trunk/nanobsd/Files/etc/rc.d/ix-jail 2011-12-01 22:38:08 UTC (rev 8914)
@@ -39,7 +39,8 @@
jail_name,
jail_ip,
jail_netmask,
- jail_interface
+ jail_interface,
+ plugins_path
FROM
services_plugins
@@ -49,9 +50,9 @@
LIMIT 1
" | \
- while read path name ip netmask iface
+ while read path name ip netmask iface plugins
do
- touch "/etc/fstab.${name}"
+ echo "${plugins} ${path}/${name}/mnt nullfs ro 0 0" > "/etc/fstab.${name}"
# No VIM colors needed here
cat<<-__EOF__>>"${tmpfile}"
@@ -63,7 +64,6 @@
jail_${name}_hostname="${name}"
jail_${name}_ip="${ip}"
jail_${name}_devfs_enable="YES"
- jail_${name}_devfs_enable="YES"
jail_${name}_devfs_ruleset="devfsrules_jail"
jail_${name}_procfs_enable="YES"
jail_${name}_mount_enable="YES"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|