Commit Graph
100 Commits
Author SHA1 Message Date
Jose b528289815 Don't start empty jails unless templates defined, code improvements 2021-01-08 20:26:31 -04:00
Jose 083e019081 Don't start empty jails, don't apply template if Bastillefile is empty 2021-01-08 02:05:30 -04:00
Jose c6ad100d8a Update help usage on update command 2020-12-02 06:41:45 -04:00
Jose dd9e55bb9b Update command enhancement and code improvements 2020-11-24 08:38:49 -04:00
Jose 52643c7e07 Add upgrade release validation 2020-11-22 20:01:14 -04:00
Jose 3dc2db84b0 Upgrade thick jails from bastille 2020-11-21 00:33:06 -04:00
Jose 855dcf3eae Fix to use SYNCDHCP by default while cloning jails 2020-10-17 17:34:25 -04:00
Jose bc07ff2389 Export command bug fixes and enhancements 2020-10-16 14:48:36 -04:00
Jose 67a9c65912 Option to create standard backups on ZFS setups 2020-10-15 16:20:25 -04:00
Jose ace6c9ab29 Don't create or modify etc/fstab and etc/crontab on empty jail creation 2020-10-15 13:18:55 -04:00
Jose abd80b151f Fix for bastille bootstrap + update command 2020-08-26 14:47:27 -04:00
Jose a0b0eadc68 Display return status on bastille cp batch/loop 2020-07-31 08:51:47 -04:00
Jose 709f00a2ac Improve bastille/cp return status 2020-07-31 04:07:58 -04:00
Jose 3872f93063 Post-creation jail misc configuration 2020-07-24 15:37:50 -04:00
Jose 3c19c5b183 Initial alternate architecture fetch/create support 2020-07-24 10:47:28 -04:00
Jose 428fd59925 Recursively destroy base release to deal with previous snapshots 2020-07-09 22:26:06 -04:00
Jose 77274adb95 Force unmount any filesystems before jail rename, error handling 2020-07-09 20:00:25 -04:00
Jose 012510e312 Append PATH over defined PATH, fix colors.pre on bastille command 2020-06-20 11:53:38 -04:00
Jose d7413d29ec Define local variables just once 2020-06-20 11:53:38 -04:00
Jose 8d98b8f6ec User option to force destroy jail in ZFS 2020-06-20 11:53:38 -04:00
Jose 932f1afae1 Append PATH over defined PATH, fix colors.pre on bastille command 2020-05-25 22:09:17 -04:00
Jose 6fb6e49c6c Define local variables just once 2020-05-25 19:35:38 -04:00
Jose 0658a343d3 Merge remote-tracking branch 'upstream/master' 2020-05-22 21:47:52 -04:00
Jose 147e7d5db3 User option to force destroy jail in ZFS 2020-05-22 21:46:03 -04:00
Jose c98ea0a380 Improve checks in rename, update any spaces/tabs in jail.conf, remove redundant code 2020-05-12 02:47:26 -04:00
Jose 9344b2f647 Allow rename legacy jail directory even if zfs is explicitly configured 2020-05-10 11:03:38 -04:00
Jose 33588397ad Error handling, don't delete legacy directory unless really empty 2020-05-10 10:09:17 -04:00
Jose d47e2a7cfb Bugfix on bastille rename, let zfs inherit mountpoint 2020-05-10 08:12:19 -04:00
Jose 8826f53d9a Minor code cleanup 2020-05-09 15:41:34 -04:00
Jose f84fd4ad85 Improve name validation for create and rename, add error_notify function 2020-05-09 15:31:15 -04:00
Jose e07f6cb0ed Add proper name valoidation in rename command, don't allow blanks in names 2020-05-09 13:59:58 -04:00
Jose a607dc2719 Properly check for home dir and symlink 2020-05-07 22:50:43 -04:00
Jose 702a0b8318 Update config, missing quotes added 2020-04-25 08:43:59 -04:00
Jose 9617a2ab9a Update sendmail rcvars, code consistency maintenance. 2020-04-25 08:26:12 -04:00
Jose a98032e912 Feature add, create empty jail and minor maintenance 2020-04-18 18:02:11 -04:00
Jose f54151cf94 Fix for pfctl on start/stop commands, clean up excess double quotes 2020-04-16 07:53:53 -04:00
Jose 4d538da4f8 Support for 'qjail' imports, import cmd improvements and fixes 2020-04-11 11:12:03 -04:00
Jose 00443ccdd1 Destroy related datasets on target, simplify snapshot naming 2020-04-09 06:32:00 -04:00
Jose d4dc133e19 Revert to recursive, mandatory here 2020-04-08 23:33:43 -04:00
Jose 4788e78436 Code cleanup, don't delete snapshot recursively 2020-04-08 23:21:13 -04:00
Jose 241ce01074 Let zfs mountpoints be inherited on standard archive imports 2020-04-08 06:47:33 -04:00
Jose bfa500a183 Always check if user specified path exist 2020-04-04 10:23:43 -04:00
Jose 7db47f3dac Allow the user specify path for Export/Import on-the-fly 2020-04-04 09:46:56 -04:00
Jose c2fefc5f16 Support for 'ezjail' archive import, improvements and fixes 2020-04-03 07:56:28 -04:00
Jose 9b3fde59b8 Fix Thickjail mountpoint inheritance in the root dataset 2020-02-21 11:35:35 -04:00
Jose 8e30774235 Merge remote-tracking branch 'upstream/master' 2020-02-21 11:31:12 -04:00
Jose 29016faf20 Just return 0 if bastille_jail_external is set 2020-02-20 21:08:04 -04:00
Jose 01eaccc1da Add double quotes to prevent globbing/word splitting, general code consistency improvements 2020-02-20 18:06:31 -04:00
Jose 8c1f9cd57a Just grep globally if jail list not empty 2020-02-20 12:22:25 -04:00
Jose 6b7b506c83 Simplify destroy options, no need to shift 1 on single options 2020-02-20 10:41:41 -04:00
Jose e26fe60fe4 Keep options simple yet support for long options 2020-02-19 19:53:25 -04:00
Jose 5b25dbcdc5 Initial support to import foreign containers, ignore fstab update if don't exist. 2020-02-18 19:58:59 -04:00
Jose 3b8c339dfa Workaround to combine options first, code cleanup/maintenance 2020-02-18 17:04:06 -04:00
Jose 75fc18fec9 Initial IPv6 support 2020-02-16 13:22:32 -04:00
Jose 015558c4bc Don't set jail ZFS dataset mountpoint, let be inherited from the system 2020-02-15 07:57:33 -04:00
Jose 53e7856d28 Ignore IPv4 check if there is no entry at all 2020-02-14 19:01:08 -04:00
Jose 19cadec03e Add quoted variables to rctl 2020-02-14 11:43:26 -04:00
Jose 7ef65036c6 Return proper warning messages, code cleanup 2020-02-14 11:00:02 -04:00
Jose 1d1ea761fe Display corresponding platform OS while extracting distfiles 2020-02-11 17:43:52 -04:00
Jose bf0bffd30f Update HardenedBSD options in bootstrap command too 2020-02-11 17:27:02 -04:00
Jose fe012c44f0 Update HardenedBSD options in destroy command too 2020-02-10 15:39:14 -04:00
Jose d1709b7199 Add HardenedBSD support for convert, import and rename commands 2020-02-10 15:22:41 -04:00
Jose 0e93832a30 Minor change, update comment 2020-02-10 14:10:00 -04:00
Jose 206d6a59e9 Ability to rename containers in both ZFS and UFS platforms 2020-02-10 14:03:28 -04:00
Jose 84cc8cb103 Cleanup unused code, display related platform OS while bootstrapping for reference 2020-02-08 09:10:17 -04:00
Jose 498029a13c Code improvements, use awk for exact match 2020-02-05 07:00:11 -04:00
Jose 96fcc6b591 Remove unneeded cat command 2020-02-04 15:56:52 -04:00
Jose b3f4064d08 Compare/update fstab if both variables are set 2020-02-04 13:37:20 -04:00
Jose b3a30a8951 Delete cache files on destroy if force option, remove alternate urls 2020-02-02 19:55:18 -04:00
Jose 9517d9608e Fix typo in bootstrap.sh 2020-02-02 12:03:35 -04:00
Jose 874e3696e3 Do not hardcode alternate url's in bootstrap.sh 2020-02-02 12:00:09 -04:00
Jose 013987f7e1 Fix minor bootstrap.sh regression 2020-02-02 07:24:16 -04:00
Jose 9681254d76 Add force stop option to bastille destroy, minor code cleanup 2020-02-02 06:50:58 -04:00
Jose 5aba0d36f5 Do not use suffix version number in HardenedBSD "CURRENT" releases 2020-02-02 04:08:24 -04:00
Jose 7620d61e49 Add HardenedBSD CURRENT and LATEST download options, and code improvements 2020-02-02 02:42:22 -04:00
Jose 38ae0ed4a6 Update list command and config 2020-01-28 18:57:51 -04:00
Jose 095075b142 Initial support for container export and import 2020-01-26 19:45:26 -04:00
Jose e0d722203a Bootstrap additional distfiles after updating bootstrap_archives 2020-01-18 16:17:10 -04:00
Jose 39b3c25bb5 Add support for thinjail to thickjail conversion, minor code fixes 2020-01-16 15:03:05 -04:00
Jose 2eb91e2f95 Improved jail validation and deal with dashes 2019-12-29 23:04:19 -04:00
Jose f3615a3380 Minor changes, fix notify if container not started 2019-12-27 14:48:06 -04:00
Jose 0c78ebae88 Fix to match exact container name, add missing quotes 2019-12-27 13:15:58 -04:00
Jose ddff440b4f Simplify grep search, add full path to jexec 2019-12-19 11:23:46 -04:00
Jose 61f49e5d02 Merge remote-tracking branch 'upstream/master' 2019-12-19 11:20:47 -04:00
Jose 1b522522af Improved container update process, add support for Thickjail updates 2019-12-17 18:11:22 -04:00
Jose 23b96bd82a Minor code cleanup/formatting 2019-12-08 17:46:15 -04:00
Jose 172baa8c32 Validate user/shell to prevent stuck login 2019-12-05 16:52:57 -04:00
Jose cfcad20f4a Simplify URL validation, don't use ping/ICMP 2019-12-05 03:38:33 -04:00
Jose 6e8279ecd4 Wait just 2 secs before switch to a mirror and be quite 2019-12-03 01:20:34 -04:00
Jose 9a30610d1a Provide alternative fetch urls 2019-12-03 00:57:47 -04:00
Jose f68ed2ecfd Added support for HardenedBSD new link structure 2019-12-02 03:10:45 -04:00
Jose 03597e1489 Additional network config checks 2019-11-25 20:02:56 -04:00
Jose b16bed276e Validate network config if external NIC is unspecified 2019-11-20 16:09:26 -04:00
Jose 4eb5d1b9ba Match exact jail name for start/stop commands, don't allow for dots during create 2019-11-19 13:10:24 -04:00
Jose 4fb2cc1247 Apply sane bastille zfs options on thick jails 2019-11-18 13:24:18 -04:00
Jose 3191a9cc1c Use data replication for Thickjail on ZFS systems 2019-11-18 03:51:06 -04:00
Jose 74117629aa Add Thickjail create option and overall improvements and fixes 2019-11-17 18:15:19 -04:00
Jose 9bc8837f77 Simplify release name handling, code improvements and fixes 2019-11-08 02:37:45 -04:00
Jose 4f67515157 Create required jail/root dataset on ZFS setups 2019-11-03 01:58:29 -04:00
Jose 3c5d961925 Scan only related jails before base release deletion 2019-11-03 00:15:02 -04:00