[PC-BSD Commits] r18018 - pcbsd/current/src-sh/warden/linux-installs

svn at pcbsd.org svn at pcbsd.org
Tue Jul 31 07:43:02 PDT 2012


Author: kris
Date: 2012-07-31 14:43:02 +0000 (Tue, 31 Jul 2012)
New Revision: 18018

Modified:
   pcbsd/current/src-sh/warden/linux-installs/debian-6-squeeze
   pcbsd/current/src-sh/warden/linux-installs/gentoo-stage3-i486
Log:

Comment the linux jail scripts a bit better



Modified: pcbsd/current/src-sh/warden/linux-installs/debian-6-squeeze
===================================================================
--- pcbsd/current/src-sh/warden/linux-installs/debian-6-squeeze	2012-07-31 14:33:44 UTC (rev 18017)
+++ pcbsd/current/src-sh/warden/linux-installs/debian-6-squeeze	2012-07-31 14:43:02 UTC (rev 18018)
@@ -2,9 +2,15 @@
 # Script to install debian 6 "squeeze" release into a jail
 # Author: Kris Moore <kris at pcbsd.org>
 
+# Jail / chroot dir
 jDIR="$1"
+
+# Target jail IP address
 jIP="$2"
 
+# Jail meta-directory
+jMETA="$3"
+
 if [ ! -e "${jDIR}" ] ; then
   mkdir -p "${jDIR}"
 fi
@@ -25,7 +31,7 @@
 ln -s /bin/true ${jDIR}/sbin/umount
 
 # Setup some custom start / stop stuff
-echo "/etc/init.d/rc 3" > ${3}/jail-start
-echo "/etc/init.d/rc 0" > ${3}/jail-stop
+echo "/etc/init.d/rc 3" > ${jMETA}/jail-start
+echo "/etc/init.d/rc 0" > ${jMETA}/jail-stop
 
 exit $err

Modified: pcbsd/current/src-sh/warden/linux-installs/gentoo-stage3-i486
===================================================================
--- pcbsd/current/src-sh/warden/linux-installs/gentoo-stage3-i486	2012-07-31 14:33:44 UTC (rev 18017)
+++ pcbsd/current/src-sh/warden/linux-installs/gentoo-stage3-i486	2012-07-31 14:43:02 UTC (rev 18018)
@@ -2,9 +2,16 @@
 # Script to install gentoo i386 release into a jail
 # Author: Kris Moore <kris at pcbsd.org>
 
+# Jail / chroot dir
 jDIR="$1"
+
+# Target jail IP address
 jIP="$2"
 
+# Jail meta-directory
+jMETA="$3"
+
+
 if [ ! -e "${jDIR}" ] ; then
   mkdir -p "${jDIR}"
 fi
@@ -112,7 +119,7 @@
 ln -s /bin/true ${jDIR}/bin/umount
 
 # Setup some custom start / stop stuff
-echo "/sbin/rc default" > ${3}/jail-start
-echo "/sbin/rc shutdown" > ${3}/jail-stop
+echo "/sbin/rc default" > ${jMETA}/jail-start
+echo "/sbin/rc shutdown" > ${jMETA}/jail-stop
 
 exit $err



More information about the Commits mailing list