a5dd360cf8instead of creating temporary folder with files, grep in installlog directly. Skip usr/ports by default, which speeds this up a lot.
freebsd_upgrade_stuff
Philipp Wuensche
2019-08-27 21:09:32 +02:00
0b2fd52c9acheck for the ezjail install logfile and bail out if it isn't present
Philipp Wuensche
2019-08-27 15:30:04 +02:00
bcf5edaa20introduce the baseclean subcommand. It uses the new install log to compare to the files present in the basejail and deletes them. By default it does a dry run and deletes nothing, adding the -y parameter will delete files really.
Philipp Wuensche
2019-08-15 16:07:03 +02:00
bc503ac023create and remove ezjail install logs inside the base jail, so it can be compared later against what is really there
Philipp Wuensche
2019-08-15 09:57:23 +02:00
8669dbddb5add to description of -K
Philipp Wuensche
2019-08-14 14:32:39 +02:00
a78d3142aapass FreeBSD version to freebsd-update so we can run the upgrade via -K without rebooting into new userland.
Philipp Wuensche
2019-08-14 14:30:08 +02:00
aac83f6591Add -K option to install, which can be used to upgrade basejail to a newer FreeBSD version without loosing old libs inside the basejail. Could replace "update -U".
Philipp Wuensche
2019-08-14 14:27:45 +02:00
593ce8e223Incorporate Makefile patch from port
Dirk Engling
2015-11-23 04:04:47 +01:00
c520f88754Do not fail on file:/// linked packages, if only the auto added lib32 package is missing
RELEASE_3_4_2
Dirk Engling
2015-04-15 01:24:31 +02:00
777cc292bfRemove mount point prefix from path
Dirk Engling
2015-04-15 01:10:04 +02:00
3674126d9cTo allow freezing jail states into flavours, allow keeping vanilla snapshot and add freeze subcommand
Dirk Engling
2015-04-15 00:11:46 +02:00
e496f1aec5Fix bug in the date-string creation reported by kaltheat.
Philipp Wuensche
2014-08-04 14:11:39 +02:00
e08fc24c38Bump version number
erdgeist
2014-06-10 18:29:10 +02:00
faf0f1fbdeHandle errors when destroying file systems for zfs jail
erdgeist
2014-06-10 16:56:44 +02:00
52e8ea4a16Fix typo in new trouble shoot command
Dirk Engling
2014-06-10 13:22:41 +02:00
c657c8d84eDo not preserve users and permissions when copying examples, then we don't need to fix ownership later. Examples only belong to root
erdgeist
2014-06-10 05:17:04 +02:00
8c232a30f4Document the snapshot command
erdgeist
2014-06-10 02:34:47 +02:00
0601e306e7highlight TODO
erdgeist
2014-06-10 00:31:05 +02:00
685f8e8d61add more todo to troubleshoot subcommand
erdgeist
2014-06-10 00:11:54 +02:00
ee32fbf4d8Do not check for success when starting or stopping jails configured as norun
erdgeist
2014-06-09 23:43:29 +02:00
932086bcb7Add the troubleshoot subcommand
Dirk Engling
2014-06-09 23:30:46 +02:00
b2bd4f55caExplain retention policy a little better
erdgeist
2014-06-03 05:09:20 +02:00
33bb63dbb4Do not substitute DESTDIR in our own substitution. Thanks to bdrewery
erdgeist
2014-04-30 20:11:05 +02:00
c93dfec6f4Obey DESTDIR in Makefile
erdgeist
2014-04-30 20:05:28 +02:00
8798063e84Lots of spelling fixes in comments and man pages submitted by Paul Ivanov
Dirk Engling
2013-12-07 03:18:16 +01:00
c95e27fc2fFix grepping for jid. This did not work for jids over 99999. Thanks to Mathieu Arnold
erdgeist
2013-11-13 16:12:15 +00:00
438b0ed74bFix a bug where ezjail-admin restore would not use the jail name from the archive when restoring from the archive and not from jail name. Thanks to Ollivier Robert for reporting
erdgeist
2013-10-14 16:44:50 +00:00
4af41642caFix invalid control character
erdgeist
2013-10-14 16:29:46 +00:00
4bdf4e4a13Create /var/ports/packages as promised in our make.conf, thanks to Koslov Sergey
erdgeist
2013-09-25 17:34:04 +00:00
27216be05aMake the ezjail-admin config -r test hack official
erdgeist
2013-09-01 13:36:22 +00:00
b267b62dadMake the test for jail feature official
erdgeist
2013-09-01 13:09:43 +00:00
f502741f81Details about how image jails are self contained were wrong. Thanks to John Ratliff for pointing that out
erdgeist
2013-08-29 14:19:55 +00:00
a617b105ddFix man page for startcrypto and stopcrypto, thanks to kaltheat
erdgeist
2013-08-02 15:22:50 +00:00
79007d81e4make ezjail-admin update -U now also work with patch levels. Thanks to Sebastian Jäschke
erdgeist
2013-07-23 00:00:54 +00:00
ca52d77c09Fix a missing if. Also drop patch level suffixes when detecting host system version
erdgeist
2013-05-18 16:26:08 +00:00
e836630271apply freebsd-update on the newjail, as well
erdgeist
2013-05-17 22:36:03 +00:00
fd1df9a99bWe don't want the forces freebsd-update pagers in our scripts
erdgeist
2013-05-17 21:14:48 +00:00
cf8fbae481Use freebsd-update to update to current patch level before splitting the basejail from newjail
erdgeist
2013-05-17 19:59:26 +00:00
721ae5e99dchange retention policy so that per window the oldest and the newest snapshot is kept, unless the newer one is not new enough ;)
erdgeist
2013-05-10 19:12:50 +00:00
84db3c9c8aFix call to pkg_add so that all packages are installed and none is being fetched. Thanks to Dan Langille
erdgeist
2013-05-10 14:54:49 +00:00
0713769a19Fix error report by passing echo the -n parameter. Thanks to 乃村翼
erdgeist
2013-05-01 18:38:18 +00:00
68253cc7a5Renamed to _ezjail-admin
erdgeist
2013-04-28 14:18:28 +00:00
6fbd92975fOnly work on jails that have been filtered into ezjail_pass for the post-commands
erdgeist
2013-04-26 13:27:41 +00:00
0ddb055c5aPut an example retention policy in sample config
erdgeist
2013-04-24 03:15:58 +00:00
9dcfe49b30ezsnaps are recursive
erdgeist
2013-04-24 03:06:00 +00:00
f236990415Use default, even if variable is null, not unset
erdgeist
2013-04-24 02:59:55 +00:00
c628bd5ca1Rename 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
erdgeist
2013-04-20 01:16:17 +00:00
40aa45474aProperly close quotes
erdgeist
2013-04-20 00:49:58 +00:00
e38c8e43efCheck for parent filesystem when using an alternative one
erdgeist
2013-04-20 00:34:58 +00:00
11f04b1db0Actually allow for the parentzfs parameter in getopt
erdgeist
2013-04-20 00:19:16 +00:00
ac059f1154Adding a license information file, due to recent circumstances :(
erdgeist
2013-04-19 23:54:16 +00:00
8f36c7002bTest for the IP address on local interfaces only, if it is not prefixed by an interface name
erdgeist
2013-04-14 18:40:36 +00:00
c7a82d99e1document the new jail(8) behaviour regarding the interface prefix on the ip address
erdgeist
2013-04-14 18:32:38 +00:00
0832cfa91dIf jail IPs are specified with an interface prefix, drop it for display and test functions
erdgeist
2013-04-14 17:49:55 +00:00
712a4cdb54Farewell CVS for ports. ezjail_portscvsroot is gone.
erdgeist
2013-04-11 16:37:20 +00:00
c8694ac703Do not attempt to chflags the root directory after it is gone, when wiping is requested on ezjail-admin delete. Thanks to Tom.
erdgeist
2013-04-10 23:29:13 +00:00
92db4874abDocument the new ezjail-admin create -z feature. Also properly attribute the man page authors.
erdgeist
2013-04-10 23:11:58 +00:00
31feb69b9cAllow user to specify another parent zfs or zpool for a new jail. This also implies -c zfs. Thanks to Cryx.
erdgeist
2013-04-10 21:42:56 +00:00
8313cd36ecWe now read and dump the jail_JAIL_parameters variable. So user settings dont get lost. Thanks to Vitaliy.
erdgeist
2013-04-01 15:15:06 +00:00
0bbd3a7549Retry freebsd-update until install fails
erdgeist
2013-03-27 18:42:39 +00:00
2d4d1c759aHandle relative paths in packages better
erdgeist
2013-03-27 18:36:11 +00:00
e7a889bb09man1 is unused now
erdgeist
2013-03-11 18:20:40 +00:00
01c79bd59dFixed a bug where ezjail-admin install would indicate a failure after successfully installing the base
erdgeist
2012-11-17 21:58:55 +00:00
2368ae43a7Cleaned 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.
erdgeist
2012-11-17 21:20:23 +00:00
e99c436babGot the indent wrong in the last commit. So I missed a 'fi'
erdgeist
2012-11-08 23:15:35 +00:00
a9becec5ffFix a bug where the host system's release version was not queried in case of file:/// uris
erdgeist
2012-11-08 23:14:17 +00:00
3768472b3aFixed 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
erdgeist
2012-09-20 11:26:45 +00:00
d90ce7e051Fix a bug, so that we are force starting a single jail only, when console -f is requested.
erdgeist
2012-09-18 16:23:28 +00:00
acf7435c20Document the new ezjail_use_zfs_for_jails variable
RELEASE_3_2_2
erdgeist
2012-09-09 20:42:41 +00:00
6dde5f4f88Document the new ezjail_use_zfs_for_jails variable
erdgeist
2012-09-09 20:15:29 +00:00
6a629c1634Add a switch to make all jails use its own zfs by default, also provide a parameter to specify default zfs options
erdgeist
2012-09-08 17:53:18 +00:00
5f9fafd80fmake ezjail-admin list not print an error when there are no jails
erdgeist
2012-09-08 15:17:02 +00:00
4037d12aaaCleanup zfs code. Make sure, ezjail_zfs_properties are properly passed. Move checks for ezjails zfs to a central location. Fix typos
erdgeist
2012-09-08 15:09:47 +00:00
7646f7e777FreeBSD versions before 8.0 did not know about jls -n. Use the old check for now. Thanks to Fahad.
erdgeist
2012-05-06 00:58:06 +00:00
542f046fabUnset variable to ensure the warning message being displayed
erdgeist
2012-04-25 14:56:34 +00:00
e816b71f2dSmall typo in unpacker
erdgeist
2012-04-24 11:47:30 +00:00
d8d44a7159Include the .* in the quoted expression to prevent unwanted expansion
erdgeist
2012-04-06 12:13:39 +00:00
10172f9475Remove deprecated use of rcvar, thanks to Glen Barber
erdgeist
2012-03-08 22:33:40 +00:00
5d40480d58Make 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
erdgeist
2012-02-02 20:22:54 +00:00
da4aef5754Remove schg flags from old basejail before installing a new one over it
erdgeist
2012-01-28 16:38:48 +00:00
9a22c28856Have 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
erdgeist
2012-01-15 18:49:57 +00:00
3095bd5900Test for locally configured IP addresses by trying to bind nc to it. Thanks to Thomas Steen Rasmussen and #bsdports
erdgeist
2012-01-14 20:55:27 +00:00
cea94f977dFix regex to grep for pids in a running Jail. Thanks to Thomas Steen Rasmussen.
erdgeist
2012-01-14 20:00:55 +00:00
6b516a3905ezjail-admin delete -f now not any longer stops all jails but only the one to be deleted. Thanks to Thomas Steen Rasmussen
erdgeist
2012-01-14 17:02:10 +00:00
94364d3fe8Re-add ports to the exclusion list
erdgeist
2012-01-14 07:20:12 +00:00
38d54fde17Tiny script to help import Servers into ezjail
erdgeist
2012-01-14 07:17:24 +00:00
7e51a9b14eCounting ezjail-flavours did not work correctly
erdgeist
2012-01-09 23:40:45 +00:00
680eb0975cCopy content of directory, not directory itself
RELEASE_3_2
erdgeist
2012-01-07 14:47:01 +00:00
f7b8001a06Correct version information
erdgeist
2012-01-07 14:39:51 +00:00
ddc88c9975Make flavourize script a new style rc command
erdgeist
2012-01-07 05:16:48 +00:00
1e39cfd7baMake flavour script a real new style rc script
erdgeist
2012-01-07 04:48:23 +00:00