erdgeist
b7a57fe329
Ensure that no-ip jails are listed as well
2010-02-05 11:27:28 +00:00
cryx
9a3ccdcbb7
- fix adding a .device entry into the fstab of a zfs-backed jail when renaming
...
- don't unmount a zfs-backed jail when starting it fails
2010-01-24 18:33:09 +00:00
erdgeist
b3c31cfe15
If pax fails resetting access times, don't report archiving errors.
...
Do not automatically install the example's make.conf into template jail.
2010-01-20 15:57:27 +00:00
cryx
93d7e3aa54
Forgot the "".
2010-01-15 15:15:27 +00:00
cryx
41bd92c0db
Wrong order.
2010-01-15 15:06:24 +00:00
cryx
9b555d6e41
Fix restoring zfs jails, they don't necessarily have a size so the ezjail-admin create command has to be invoked without the -s option.
2010-01-15 14:34:00 +00:00
cryx
366059754d
Fix the renaming of the mountpoint while renaming a zfs backed jail.
2010-01-15 14:23:10 +00:00
cryx
b0f2792970
When renaming a zfs backed jail, don't try to move the rootdir because it is done by zfs rename.
2010-01-15 13:59:38 +00:00
cryx
cc6ceaad9b
Respect the -x option when creating a ZFS backed jail, do a check if the destinatiuon really is ZFS filesystem!
2010-01-15 13:38:23 +00:00
cryx
8ecd24f223
Teach ezjail-admin not to attach a zfs backed imagejail when doing archive, reported by Nathan Tice.
2010-01-15 12:59:44 +00:00
erdgeist
02b7620839
Introduce a default flavour setting, also fix some leftovers from renaming default to example. Many thanks to Panagiotis J. Christias
2010-01-14 02:11:03 +00:00
cryx
22aa36af20
Allow the user to continue with ZFS operations if the pool is in a DEGRADED state, but warn about it.
2010-01-12 12:55:01 +00:00
erdgeist
9eeb4ed216
Remove bashism, use freebsd-updates way to wait randomly. Thanks to Panagiotis J. Christias
2010-01-11 17:04:44 +00:00
erdgeist
2dd2e0b55e
HEADS UP: Rewrote code that writes jail configs, also fixed many flaws in the config subcommand.
2010-01-11 03:06:27 +00:00
erdgeist
da6e501a90
make ezjail-admin always return 0 on success. Thanks to Justin Head
2010-01-08 23:45:42 +00:00
erdgeist
ebd426353e
add jail id to every jail ip-line
2010-01-08 22:48:10 +00:00
erdgeist
d6f35d8fa1
make it clearer, that multiple addresses are listed on multiple lines
2010-01-08 22:35:54 +00:00
erdgeist
069c22e6ae
Rearrange space in ezjail-admin list... more needs to be done vor v6 addresses.
2010-01-08 22:33:08 +00:00
erdgeist
7bc936b857
Check for zfs_enable was inverted
2010-01-08 22:18:31 +00:00
erdgeist
fb6210964e
Fix if[]-typo, fix spacing before secondary lines in ezjails with multiple ip addresses
2010-01-08 22:14:49 +00:00
erdgeist
055caedade
erdgeistify styles, remove white spaces, support multiple ip addresses better
2010-01-08 22:07:30 +00:00
cryx
44872cd8fb
Check for the mountpoint before setting it.
2010-01-03 20:51:09 +00:00
cryx
a4b7fa2d75
Fix a bug in ezjail-admin install where the zfs-dataset was not mounted correctly under the ezjail-directory.
2010-01-03 20:48:44 +00:00
cryx
a11f8ed733
Use the jails FIB when attaching via ezjail-admin console
2009-12-29 13:02:56 +00:00
cryx
3d3343d6a2
wrong checking for the fib being an integer
2009-12-29 12:16:09 +00:00
cryx
7fd2408694
Support for setting and using jail-bound ZFS datasets, cpuset(1) and setfib(1).
...
Jail-bound ZFS datasets still need the usual zfs+jail stuff like security.jail.mount_allowed=1 and security.jail.enforce_statfs=0 as well as "add path zfs unhide" in the devfs.rules for the jail.
The setfib utility requires FIBs to be enabled via kernel-config.
All features need at least FreeBSD 7.1-RELEASE.
2009-12-28 22:09:17 +00:00
cryx
12cf0c4f21
"It seems that FreeBSD 8 does not like to start rc scripts named *.sh."
...
Patch from http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2009/freebsd-jail/20091227.freebsd-jail
2009-12-28 16:39:20 +00:00
cryx
91485792d8
variable defaults for ZFS support
2009-08-21 13:18:53 +00:00
erdgeist
3590f5daf3
Make archive use the cpio archive format. Also fix some Warning message.
2009-08-21 12:03:19 +00:00
cryx
8420b5c98f
Fix ZFS creation when using ezjail-admin install
2009-05-27 23:24:35 +00:00
cryx
18ff633ddc
Do the testing in a nicer way.
2009-05-24 14:11:23 +00:00
cryx
835d1b5885
Do better checks if ZFS is enabled and if the running ZFS implementation
...
is supported.
2009-05-24 13:53:42 +00:00
cryx
095380a8d0
First chunk of ZFS support in ezjail.
...
ezjail is now capable of managing jails in seperate ZFS filesystems and to manage basejail and newjail in seperate ZFS filesystems too.
It is possible to mix non-ZFS jails with ZFS jails as well as using ZFS jails with basejail/newjail in a non-ZFS filesystem.
To create a zfs jail you need an existing ZFS pool, ZFS needs to be enabled in /etc/rc.conf and you have to set at least ezjail_jailzfs in ezjail.conf. To let ezjail manage basejail/newjail in ZFS filesystems to, you have to enable ezjail_use_zfs in ezjail.conf.
To use ZFS support in ezjail, you have to use at least FreeBSD 7-STABLE form after the commit of ZFS version 13 (commited Wed May 20 23:34:59 2009 UTC, http://svn.freebsd.org/viewvc/base?view=revision&revision=192498 ) of FreeBSD 8-CURRENT. Prior versions of ZFS are _not_ supported.
Creating a ZFS based jail is as easy as using 'ezjail-admin create -c zfs <jailname> <jailip>'.
Using zfs send/receive for archiving is not yet implemented.
Converting non-ZFS basejail/newjail setups into ZFS setups is not handled by ezjail, converting non-ZFS jails into ZFS jails is not yet handled by ezjail but will be possible in the future.
WARNING: ZFS is considered to be an experimental feature in FreeBSD. ZFS support in ezjail is work in progress.
2009-05-23 13:09:53 +00:00
erdgeist
ac8696b602
Using posix (2001) format instead of the outdated ustar to archive
2009-02-02 17:39:27 +00:00
erdgeist
5b37381e76
Setting defaults the more elegant bourne shell style
2008-10-22 15:54:15 +00:00
erdgeist
efc8152d78
Preparing ezjail for 3.0
2008-09-26 12:16:12 +00:00
erdgeist
58a43ea6a4
NOOO! We do not want to install word! Never! Thanks to Georg Hartzell for pointing that out.
2008-07-18 18:15:41 +00:00
erdgeist
b956978714
anoncvs.at.freebsd.org does no longer exist
2008-07-17 11:43:56 +00:00
erdgeist
0191e01c58
Finally modernize behaviour of ezjail-admin update.
...
It no longer rebuilds the whole world by default.
Also add a -u option that utilies freebsd-update to update the world.
2008-07-16 04:25:35 +00:00
erdgeist
80d20cecdd
echo needs a -e switch in order to handle newlines correctly
2008-07-13 21:21:10 +00:00
erdgeist
a30cce7b39
Fixed one unverfied copy'n'paste action
2008-07-13 21:15:42 +00:00
erdgeist
20aae5c18f
Add -P -M and -S switches to ezjail-admin install.
...
Those commands can be used to add ports, sources and man page packages to an already installed base without reinstalling the base.
Unify error reporting and try to give the user enough clues as how to go on in case of an error.
2008-07-10 18:55:39 +00:00
erdgeist
78416d679d
A control character slipped into the script
2008-07-09 22:03:29 +00:00
erdgeist
628a6a88d3
Embarrassing boolean expression mistake
2008-07-09 21:59:28 +00:00
erdgeist
d435cc730a
Move image mount logic into a function
...
Fix image jail size stat to follow symlink
2008-07-09 10:37:11 +00:00
erdgeist
79d3217cc0
Direct find to 'find .' instead of 'find *' to allow for dot-files to be found and too many parameters never to occur
2008-07-08 23:09:51 +00:00
erdgeist
55d085e070
Typo in install
2008-07-08 20:11:24 +00:00
erdgeist
9060c450c5
Fix typos and add lots of documentation.
2008-07-08 18:30:06 +00:00
erdgeist
e8d0bdf714
Typo in imported image size
2008-07-07 23:17:28 +00:00
erdgeist
cd753c0f87
When restoring, use rcorder-lines from old ezjails config
2008-07-07 12:36:45 +00:00