Commit Graph

  • 7fd2408694 Support for setting and using jail-bound ZFS datasets, cpuset(1) and setfib(1). cryx 2009-12-28 22:09:17 +00:00
  • 12cf0c4f21 "It seems that FreeBSD 8 does not like to start rc scripts named *.sh." cryx 2009-12-28 16:39:20 +00:00
  • 24b0102381 ZFS clarification in the ezjail-admin manpage cryx 2009-08-21 13:46:27 +00:00
  • 91485792d8 variable defaults for ZFS support cryx 2009-08-21 13:18:53 +00:00
  • 3590f5daf3 Make archive use the cpio archive format. Also fix some Warning message. erdgeist 2009-08-21 12:03:19 +00:00
  • 8420b5c98f Fix ZFS creation when using ezjail-admin install cryx 2009-05-27 23:24:35 +00:00
  • 18ff633ddc Do the testing in a nicer way. cryx 2009-05-24 14:11:23 +00:00
  • 835d1b5885 Do better checks if ZFS is enabled and if the running ZFS implementation is supported. cryx 2009-05-24 13:53:42 +00:00
  • 095380a8d0 First chunk of ZFS support in ezjail. cryx 2009-05-23 13:09:53 +00:00
  • ac8696b602 Using posix (2001) format instead of the outdated ustar to archive erdgeist 2009-02-02 17:39:27 +00:00
  • 5b37381e76 Setting defaults the more elegant bourne shell style erdgeist 2008-10-22 15:54:15 +00:00
  • efc8152d78 Preparing ezjail for 3.0 RELEASE_3_0 erdgeist 2008-09-26 12:16:12 +00:00
  • 2e54ff2496 Grammar fixes. Thanks and a beer go out to Fred Condo. erdgeist 2008-08-06 16:05:08 +00:00
  • 58a43ea6a4 NOOO! We do not want to install word! Never! Thanks to Georg Hartzell for pointing that out. erdgeist 2008-07-18 18:15:41 +00:00
  • b956978714 anoncvs.at.freebsd.org does no longer exist erdgeist 2008-07-17 11:43:56 +00:00
  • 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. erdgeist 2008-07-16 04:25:35 +00:00
  • 80d20cecdd echo needs a -e switch in order to handle newlines correctly erdgeist 2008-07-13 21:21:10 +00:00
  • a30cce7b39 Fixed one unverfied copy'n'paste action erdgeist 2008-07-13 21:15:42 +00:00
  • 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. erdgeist 2008-07-10 18:55:39 +00:00
  • 78416d679d A control character slipped into the script erdgeist 2008-07-09 22:03:29 +00:00
  • 628a6a88d3 Embarrassing boolean expression mistake erdgeist 2008-07-09 21:59:28 +00:00
  • d435cc730a Move image mount logic into a function Fix image jail size stat to follow symlink erdgeist 2008-07-09 10:37:11 +00:00
  • 79d3217cc0 Direct find to 'find .' instead of 'find *' to allow for dot-files to be found and too many parameters never to occur erdgeist 2008-07-08 23:09:51 +00:00
  • 55d085e070 Typo in install erdgeist 2008-07-08 20:11:24 +00:00
  • 51c6072cb8 Fix typos and add lots of documentation. erdgeist 2008-07-08 18:45:24 +00:00
  • 9060c450c5 Fix typos and add lots of documentation. erdgeist 2008-07-08 18:30:06 +00:00
  • e8d0bdf714 Typo in imported image size erdgeist 2008-07-07 23:17:28 +00:00
  • cd753c0f87 When restoring, use rcorder-lines from old ezjails config erdgeist 2008-07-07 12:36:45 +00:00
  • 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. erdgeist 2008-07-07 04:29:32 +00:00
  • 518ef661e1 Making paths absolute did not work correctly. Also move commands handling multiple jails to a for loop instead of a while loop erdgeist 2008-07-06 22:24:56 +00:00
  • aaf34bfa99 Use sh\'s own line splitting algorithm instead of cut erdgeist 2008-07-06 18:54:56 +00:00
  • f36423bf6c Fix pathname substitution to prevent incorrect retrieval of soft links, when creating a jail from archive. erdgeist 2008-07-06 18:17:36 +00:00
  • 68704c8cc9 Make deletes less verbose. also rename tmpfile to ezjail_tmpfile erdgeist 2008-06-04 01:02:54 +00:00
  • 5315494529 Saving config from archive to tempfile in order to source it erdgeist 2008-06-01 01:22:05 +00:00
  • 6c44af6f90 Fix quoting errors. erdgeist 2008-05-19 09:33:38 +00:00
  • 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]. erdgeist 2008-05-11 03:04:46 +00:00
  • f9f6858744 when specifying jail name, options must not be quoted erdgeist 2008-04-02 21:03:16 +00:00
  • 7c281ef1f2 Default login command changed from /bin/sh to /usr/bin/login -f root erdgeist 2008-03-23 02:56:38 +00:00
  • 0db3c2df89 Include version information. Also fix an amd64 install problem. erdgeist 2008-03-22 11:35:07 +00:00
  • 1667d0f8de fixed stray control character erdgeist 2008-03-14 01:48:40 +00:00
  • 1e2d49ec51 abstract making absolute paths. use pax instead of tar to extract archives. Also do not report an error, if ezjail.conf is missing. erdgeist 2008-03-14 00:17:22 +00:00
  • d8ead98071 Reverse jail order when calling stop erdgeist 2008-01-08 03:34:49 +00:00
  • b4889a5d6b Format for property files in ezjail archive now changed to use - as seperator. erdgeist 2008-01-08 03:34:48 +00:00
  • 33c42bb8ce Fetching first values from an ezjail archive in restore command. Still not functional. erdgeist 2008-01-02 07:44:32 +00:00
  • 3953315c47 Guess archive name on restores erdgeist 2008-01-02 07:03:59 +00:00
  • e9f9774ff6 Allow restoring from a archive coming in from stdin erdgeist 2008-01-02 06:28:04 +00:00
  • 17df3ac4c4 Fix some bugs in stdout archive code erdgeist 2007-11-27 23:01:32 +00:00
  • a1d5d32554 Allow for specifying - as filename if archiving to stdout is desired. erdgeist 2007-11-27 22:11:59 +00:00
  • 3ecbd16771 Conditions checked the wrong way erdgeist 2007-11-27 21:51:48 +00:00
  • 78de4b0846 cosmetics erdgeist 2007-10-14 20:26:53 +00:00
  • 32f4547b22 In a function we must not shift positional parameters erdgeist 2007-10-08 05:24:45 +00:00
  • 96478770eb Get rid off rather ugly ezjail_imageparams HACK erdgeist 2007-10-08 05:02:50 +00:00
  • 845561e20d Fix a check that once required the variable to be != YES erdgeist 2007-10-08 02:24:26 +00:00
  • 052b740d8c Revert the "fix" from 1.43, there was no bug in here but in ezjail-admin erdgeist 2007-10-08 02:19:41 +00:00
  • 8143c32994 Fixed some missmatched quotes erdgeist 2007-10-08 02:15:21 +00:00
  • 82ff9ad072 Some nesting errors occured... investigating erdgeist 2007-10-08 02:11:35 +00:00
  • f5c5e02160 We need all image parameters, even when the image already existed erdgeist 2007-10-08 02:04:59 +00:00
  • 472830e66e Also include stopcrypto to the list of proxied requests erdgeist 2007-10-08 01:47:06 +00:00
  • f59b100fff Apply coding style guides to ezjail.sh as well. Also fix bug making startcrypto useless erdgeist 2007-10-08 01:41:02 +00:00
  • c3adb3ca01 Also include startcrypto to the list of proxied requests erdgeist 2007-10-08 01:32:22 +00:00
  • 5ef11c6d04 introduce -f option to getopt list of ezjail-admin delete erdgeist 2007-10-07 23:11:24 +00:00
  • 425dab96af Lots of things changed: * delete now knows a -f switch which forces detach or stop, if jail is attached or running * restore added * archive now saves the whole tag to archive to later identify the jail and backup date * detach_images now also removes the soft link * starting/stopping a jail moved to its own function * I enforced some coding style guides * * [ -n "string" ] is replaced by [ "string" ] * * Command parameters are being quoted. This will later allow jail roots with spaces in its name * * variable assignments are always enclosed by exactly one of ${}, `` or "", (except for cases like a=${x}/${y:-"z"}). This means that a="${x}" now is a=${x} * * [ -z "string" ] && echo "Foo" is replaced by ["string" ] || echo "Foo", which normally reads out more naturally (i.e. [ "${jail_exists}" ] || exerr "Error: Jail does not exist." ) * * $? and $# are now always compared by -eq or -ne operators, not by = or != erdgeist 2007-10-07 21:22:28 +00:00
  • 32bf68787b A strange utf8 char slipped into my code. erdgeist 2007-10-02 20:20:05 +00:00
  • 626f2fd677 put the jails name into archive erdgeist 2007-10-02 00:51:38 +00:00
  • 32d54c5a9d document ezjail_archivedir option, fix hierarchy of ezjail.conf options erdgeist 2007-10-01 11:42:31 +00:00
  • 0dc059f943 Documentation for ezjail-admin archive enhanced erdgeist 2007-10-01 11:37:56 +00:00
  • 3418e96f2d Document ezjail-admin archive erdgeist 2007-10-01 01:44:04 +00:00
  • 70d10f08a7 archive switch now is -a for both ezjail-admin archive and ezjail-admin create erdgeist 2007-10-01 01:02:45 +00:00
  • b215b3883c archiving multiple or all jails now works. Documentation in manpages is due erdgeist 2007-09-30 13:13:08 +00:00
  • def86d60c0 Archive command should be working right now erdgeist 2007-09-30 12:09:03 +00:00
  • 0c78c429db Fix a quoting bug erdgeist 2007-09-29 04:11:03 +00:00
  • 9064f3e18b We'll be using pax to archive erdgeist 2007-09-29 04:07:01 +00:00
  • fe1cec69fe Fixed quoting erdgeist 2007-09-26 15:13:02 +00:00
  • 0c382a5e74 Started experimenting with archive and restore of jails erdgeist 2007-09-26 15:06:40 +00:00
  • c404a6ae6b introduced a console subcommand that allows attaching to a jail by it jailname. Also added documentation for that and the magic rc.d/ezjail.sh-proxy introduced before erdgeist 2007-09-15 00:25:52 +00:00
  • 208937d793 Added short cuts to ezjail-admin that will invoke PREFIX/etc/rc.d/ezjail{,.sh} with erdgeist 2007-09-14 23:25:04 +00:00
  • 8bc4651429 rc.d/ezjail.sh restart failed on image jails erdgeist 2007-09-01 13:10:41 +00:00
  • 9e7c6cfd8e Corrected path to sudoers file where to fix permissions erdgeist 2007-09-01 13:09:32 +00:00
  • 672101db94 sudoers file needs correct permissions in default flavour erdgeist 2007-08-31 17:39:54 +00:00
  • 6b2fe867d5 Got the securelevel check the wrong way around. Mea culpa. RELEASE_2_1 erdgeist 2007-04-26 21:35:45 +00:00
  • 312c276483 Stale device link detection completed and tested. More testing required. erdgeist 2007-03-23 16:08:43 +00:00
  • 59dde63a40 Stale device link detection for image devices. Heads up. Untested. erdgeist 2007-03-23 15:45:35 +00:00
  • a6e66c0450 the -a operator evaluates from right to left erdgeist 2007-02-22 16:21:32 +00:00
  • 2cb3c00485 Try fscking the correct way. Have not yet figured it out completely erdgeist 2007-02-22 16:01:09 +00:00
  • 31ac44c0ff Document fsck subcommand erdgeist 2007-02-22 15:36:57 +00:00
  • 79efdfa036 ezjail-admin create now ignores dot files when checking, whether a directory is empty. That way .snap wont mark it non-empty. However, Lost+Found still is a problem. erdgeist 2007-02-21 04:22:08 +00:00
  • b5f4cc892a Learned groff (a little) and beautified the man page. erdgeist 2007-02-21 04:20:56 +00:00
  • 6179ac6590 Check for secure level since ezjail will fail if it is -gt 0 erdgeist 2007-01-24 11:31:04 +00:00
  • bdbb4f9f37 do portsnap cron when not invoked from command line. Do copy packages that are just linked into jail root to make them visible at run time. erdgeist 2007-01-16 14:15:21 +00:00
  • b37e9be763 error when umounting irritates users, this is a cleanup function, so it should silently fail, if nothing is mounted. erdgeist 2007-01-15 14:08:17 +00:00
  • e46d467c52 HEADS UP: introduced fsck feature, untested. erdgeist 2007-01-15 14:03:46 +00:00
  • a98c4c8e29 More sanity checking. erdgeist 2006-11-15 19:46:37 +00:00
  • a0c34d12ee rename introduced erdgeist 2006-11-15 19:37:21 +00:00
  • 55c93caadc Last glitch in image rename code removed[tm]. erdgeist 2006-11-15 19:31:21 +00:00
  • 21627ca92f mixed up basename with dirname... fixed erdgeist 2006-11-15 19:20:50 +00:00
  • 8a6f906148 I suck. It was the correct way erdgeist 2006-11-15 19:13:21 +00:00
  • 13b0fca221 Fixed our test the wrong way erdgeist 2006-11-15 19:11:17 +00:00
  • 9e7d3e6c4c More Syntax flaws erdgeist 2006-11-15 19:07:09 +00:00
  • 4251eec605 Syntax check by cryx ;) erdgeist 2006-11-15 19:05:04 +00:00
  • 9725ed4a85 HEADS UP: renaming jails has been introduced. Lots of checking will probably be required, this version is considered unstable. Also two minr style glitches have been fixed. erdgeist 2006-11-15 18:51:22 +00:00