504 Commits

Author SHA1 Message Date
erdgeist
fd1df9a99b We don't want the forces freebsd-update pagers in our scripts 2013-05-17 21:14:48 +00:00
erdgeist
cf8fbae481 Use freebsd-update to update to current patch level before splitting the basejail from newjail 2013-05-17 19:59:26 +00:00
erdgeist
721ae5e99d change retention policy so that per window the oldest and the newest snapshot is kept, unless the newer one is not new enough ;) 2013-05-10 19:12:50 +00:00
erdgeist
84db3c9c8a Fix call to pkg_add so that all packages are installed and none is being fetched. Thanks to Dan Langille 2013-05-10 14:54:49 +00:00
erdgeist
0713769a19 Fix error report by passing echo the -n parameter. Thanks to 乃村翼 2013-05-01 18:38:18 +00:00
erdgeist
68253cc7a5 Renamed to _ezjail-admin 2013-04-28 14:18:28 +00:00
erdgeist
6fbd92975f Only work on jails that have been filtered into ezjail_pass for the post-commands 2013-04-26 13:27:41 +00:00
erdgeist
0ddb055c5a Put an example retention policy in sample config 2013-04-24 03:15:58 +00:00
erdgeist
9dcfe49b30 ezsnaps are recursive 2013-04-24 03:06:00 +00:00
erdgeist
377e133248 Remove debug output 2013-04-24 03:03:04 +00:00
erdgeist
76c442babe introduce ezjail-admin snapshot. Experimental 2013-04-24 03:01:19 +00:00
erdgeist
f236990415 Use default, even if variable is null, not unset 2013-04-24 02:59:55 +00:00
erdgeist
c628bd5ca1 Rename ezjail_parentfs to ezjail_parentzfs. Also save the ezjail_parentzfs for new jails so that they can later be removed from the correct pool RELEASE_3_3 2013-04-20 01:16:17 +00:00
erdgeist
40aa45474a Properly close quotes 2013-04-20 00:49:58 +00:00
erdgeist
e38c8e43ef Check for parent filesystem when using an alternative one 2013-04-20 00:34:58 +00:00
erdgeist
11f04b1db0 Actually allow for the parentzfs parameter in getopt 2013-04-20 00:19:16 +00:00
erdgeist
ac059f1154 Adding a license information file, due to recent circumstances :( 2013-04-19 23:54:16 +00:00
erdgeist
8f36c7002b Test for the IP address on local interfaces only, if it is not prefixed by an interface name 2013-04-14 18:40:36 +00:00
erdgeist
c7a82d99e1 document the new jail(8) behaviour regarding the interface prefix on the ip address 2013-04-14 18:32:38 +00:00
erdgeist
0832cfa91d If jail IPs are specified with an interface prefix, drop it for display and test functions 2013-04-14 17:49:55 +00:00
erdgeist
187a3af934 Keep post_start_script jail parameters when rewriting config 2013-04-14 17:38:54 +00:00
erdgeist
712a4cdb54 Farewell CVS for ports. ezjail_portscvsroot is gone. 2013-04-11 16:37:20 +00:00
erdgeist
c8694ac703 Do not attempt to chflags the root directory after it is gone, when wiping is requested on ezjail-admin delete. Thanks to Tom. 2013-04-10 23:29:13 +00:00
erdgeist
92db4874ab Document the new ezjail-admin create -z feature. Also properly attribute the man page authors. 2013-04-10 23:11:58 +00:00
erdgeist
31feb69b9c Allow user to specify another parent zfs or zpool for a new jail. This also implies -c zfs. Thanks to Cryx. 2013-04-10 21:42:56 +00:00
erdgeist
8313cd36ec We now read and dump the jail_JAIL_parameters variable. So user settings dont get lost. Thanks to Vitaliy. 2013-04-01 15:15:06 +00:00
saite
cfb55eaf01 Introduce _post_start_script. 2013-03-28 18:51:14 +00:00
erdgeist
0bbd3a7549 Retry freebsd-update until install fails 2013-03-27 18:42:39 +00:00
erdgeist
2d4d1c759a Handle relative paths in packages better 2013-03-27 18:36:11 +00:00
erdgeist
e7a889bb09 man1 is unused now 2013-03-11 18:20:40 +00:00
erdgeist
01c79bd59d Fixed a bug where ezjail-admin install would indicate a failure after successfully installing the base 2012-11-17 21:58:55 +00:00
erdgeist
2368ae43a7 Cleaned up the code that differentiates between pre 9.0 and post 9.0 distribution layout.
Now using fetch to remotely fetch the distribution packages for post 9.0 dists.
Using fetch allows to specify protocols other than file:// and ftp://, with ftp:// being the default.
http servers are not yet queried for the distributions provided.
2012-11-17 21:20:23 +00:00
erdgeist
e99c436bab Got the indent wrong in the last commit. So I missed a 'fi' 2012-11-08 23:15:35 +00:00
erdgeist
a9becec5ff Fix a bug where the host system's release version was not queried in case of file:/// uris 2012-11-08 23:14:17 +00:00
erdgeist
3768472b3a Fixed a problem where reuse of the ezjail_sourcetree variable led to ezjail-admin update not finding source tree. Thanks to Paul Macdonald. RELEASE_3_2_3 2012-09-20 11:26:45 +00:00
erdgeist
d90ce7e051 Fix a bug, so that we are force starting a single jail only, when console -f is requested. 2012-09-18 16:23:28 +00:00
erdgeist
acf7435c20 Document the new ezjail_use_zfs_for_jails variable RELEASE_3_2_2 2012-09-09 20:42:41 +00:00
erdgeist
6dde5f4f88 Document the new ezjail_use_zfs_for_jails variable 2012-09-09 20:15:29 +00:00
erdgeist
6a629c1634 Add a switch to make all jails use its own zfs by default, also provide a parameter to specify default zfs options 2012-09-08 17:53:18 +00:00
erdgeist
5f9fafd80f make ezjail-admin list not print an error when there are no jails 2012-09-08 15:17:02 +00:00
erdgeist
4037d12aaa Cleanup zfs code. Make sure, ezjail_zfs_properties are properly passed. Move checks for ezjails zfs to a central location. Fix typos 2012-09-08 15:09:47 +00:00
erdgeist
7646f7e777 FreeBSD versions before 8.0 did not know about jls -n. Use the old check for now. Thanks to Fahad. 2012-05-06 00:58:06 +00:00
erdgeist
542f046fab Unset variable to ensure the warning message being displayed 2012-04-25 14:56:34 +00:00
erdgeist
e816b71f2d Small typo in unpacker 2012-04-24 11:47:30 +00:00
erdgeist
d8d44a7159 Include the .* in the quoted expression to prevent unwanted expansion 2012-04-06 12:13:39 +00:00
erdgeist
10172f9475 Remove deprecated use of rcvar, thanks to Glen Barber 2012-03-08 22:33:40 +00:00
erdgeist
5d40480d58 Make the clone script more end user friendly. Still more to go. Maybe the script will be merged to ezjail-admin one day. RELEASE_3_2_1 2012-02-02 20:22:54 +00:00
erdgeist
da4aef5754 Remove schg flags from old basejail before installing a new one over it 2012-01-28 16:38:48 +00:00
erdgeist
9a22c28856 Have the test for local addresses be done by ping while trying to send from the IP to the IP. The intermediate approach using nc did not work in 9.0 2012-01-15 18:49:57 +00:00
erdgeist
3095bd5900 Test for locally configured IP addresses by trying to bind nc to it. Thanks to Thomas Steen Rasmussen and #bsdports 2012-01-14 20:55:27 +00:00