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
RELEASE_3_0
2008-09-26 12:16:12 +00:00
erdgeist
2e54ff2496
Grammar fixes. Thanks and a beer go out to Fred Condo.
2008-08-06 16:05:08 +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
51c6072cb8
Fix typos and add lots of documentation.
2008-07-08 18:45: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
erdgeist
7d9d19af7f
Fix a problem where we can not detach a jail after its creation, because we're still inside its root directory.
...
Also put image size for image jails into the properties list.
Auto attach image jails for archive (if possible, aka non-blocking).
Actually call ezjail-admin create from ezjail-admin restore.
This means, that restore is rudimentary up and running.
2008-07-07 04:29:32 +00:00
erdgeist
518ef661e1
Making paths absolute did not work correctly. Also move commands handling multiple jails to a for loop instead of a while loop
2008-07-06 22:24:56 +00:00
erdgeist
aaf34bfa99
Use sh\'s own line splitting algorithm instead of cut
2008-07-06 18:54:56 +00:00
erdgeist
f36423bf6c
Fix pathname substitution to prevent incorrect retrieval of soft links, when creating a jail from archive.
2008-07-06 18:17:36 +00:00
erdgeist
68704c8cc9
Make deletes less verbose. also rename tmpfile to ezjail_tmpfile
2008-06-04 01:02:54 +00:00
erdgeist
5315494529
Saving config from archive to tempfile in order to source it
2008-06-01 01:22:05 +00:00
erdgeist
6c44af6f90
Fix quoting errors.
2008-05-19 09:33:38 +00:00
erdgeist
265e1dc36d
Fix ezjail_makeabsolute, it was broken, when the provided 2nd path wasnt absolute. Also add lots of logic to the restore command. Soon will be working[tm].
2008-05-11 03:04:46 +00:00
erdgeist
f9f6858744
when specifying jail name, options must not be quoted
2008-04-02 21:03:16 +00:00
erdgeist
7c281ef1f2
Default login command changed from /bin/sh to /usr/bin/login -f root
2008-03-23 02:56:38 +00:00
erdgeist
0db3c2df89
Include version information. Also fix an amd64 install problem.
2008-03-22 11:35:07 +00:00
erdgeist
1667d0f8de
fixed stray control character
2008-03-14 01:48:40 +00:00
erdgeist
1e2d49ec51
abstract making absolute paths. use pax instead of tar to extract archives. Also do not report an error, if ezjail.conf is missing.
2008-03-14 00:17:22 +00:00
erdgeist
d8ead98071
Reverse jail order when calling stop
2008-01-08 03:34:49 +00:00
erdgeist
b4889a5d6b
Format for property files in ezjail archive now changed to use - as seperator.
2008-01-08 03:34:48 +00:00
erdgeist
33c42bb8ce
Fetching first values from an ezjail archive in restore command. Still not functional.
2008-01-02 07:44:32 +00:00
erdgeist
3953315c47
Guess archive name on restores
2008-01-02 07:03:59 +00:00
erdgeist
e9f9774ff6
Allow restoring from a archive coming in from stdin
2008-01-02 06:28:04 +00:00
erdgeist
17df3ac4c4
Fix some bugs in stdout archive code
2007-11-27 23:01:32 +00:00
erdgeist
a1d5d32554
Allow for specifying - as filename if archiving to stdout is desired.
2007-11-27 22:11:59 +00:00
erdgeist
3ecbd16771
Conditions checked the wrong way
2007-11-27 21:51:48 +00:00
erdgeist
78de4b0846
cosmetics
2007-10-14 20:26:53 +00:00
erdgeist
32f4547b22
In a function we must not shift positional parameters
2007-10-08 05:24:45 +00:00
erdgeist
96478770eb
Get rid off rather ugly ezjail_imageparams HACK
2007-10-08 05:02:50 +00:00
erdgeist
845561e20d
Fix a check that once required the variable to be != YES
2007-10-08 02:24:26 +00:00
erdgeist
052b740d8c
Revert the "fix" from 1.43, there was no bug in here but in ezjail-admin
2007-10-08 02:19:41 +00:00
erdgeist
8143c32994
Fixed some missmatched quotes
2007-10-08 02:15:21 +00:00
erdgeist
82ff9ad072
Some nesting errors occured... investigating
2007-10-08 02:11:35 +00:00
erdgeist
f5c5e02160
We need all image parameters, even when the image already existed
2007-10-08 02:04:59 +00:00