Commit Graph
100 Commits
Author SHA1 Message Date
JRGTH b1258378ab Revision for create cmd, fixed regressions and enhanced usage
This update fixes for previous regressions in the `create.sh` file and code cleanup, also enhances the usage display.
2021-07-12 14:54:00 -04:00
JRGTH 4999f0968f Merge remote-tracking branch 'upstream/master' 2021-07-12 14:52:36 -04:00
JRGTH 92e9579e04 Revert first as conflict with older one 2021-07-12 14:52:25 -04:00
JRGTH a932abe0e3 Revision for create cmd, fixed regressions and enhanced usage.
This update fixes for previous regressions and code cleanup, also enhances the usage display.
2021-07-12 14:45:37 -04:00
JRGTH ee2c25697c Cleanup obsolete code 2021-07-10 09:01:28 -04:00
JRGTH 0a7db32490 Restored usage after file debug 2021-07-10 08:52:08 -04:00
JRGTH f0c3620fac Add export/import standard I/O redirection
This update enhances the export and import command to fully support jail export/import user standard input/output redirection
2021-07-10 08:35:50 -04:00
JRGTH d73645facb Add the new tgz compress format to UFS systems too 2021-07-08 17:41:27 -04:00
JRGTH 17ea19bf65 Deprecate command parameters not starting with dash here too 2021-07-08 15:37:36 -04:00
JRGTH 5c4d69775f Deprecate command parameters not starting with dash 2021-07-08 15:29:31 -04:00
JRGTH b0f947ca00 Standardized options position in export/import commands, improve option checks 2021-07-08 13:48:02 -04:00
JRGTH 9e3ad27ecf Re-added new and improved create.sh file 2021-07-07 05:22:35 -04:00
JRGTH 8938d03f47 Revert to original file before re-add new 2021-07-07 05:21:28 -04:00
JRGTH 961731b063 New features and improvements revised and re-added 2021-07-07 05:05:38 -04:00
JRGTH 2f63bf3bbc Merge remote-tracking branch 'upstream/master' 2021-07-07 04:53:57 -04:00
JRGTH b517d3aece File reverted due conflicts 2021-07-07 04:53:33 -04:00
Jose 89c6ce9e78 Revert the improved import command due conflicts, later re add. 2021-05-15 08:16:10 -04:00
Jose bfaa2681e0 Revert the improved export command due conflicts, later re add. 2021-05-15 08:13:14 -04:00
Jose 2c87c58a5b Prevent mount command fstab entry nesting 2021-04-29 16:35:38 -04:00
Jose 0c699ea68d Merge remote-tracking branch 'upstream/master' 2021-04-29 16:33:26 -04:00
Jose 9984101e1b Don't share ports across the jails, just copy them
A security concern into the jail could affect the shared ports for all the child, and/or multiple jails accessing/managing/updating the same source could lead into conflicts.

Due the above mentioned issues, the optional distfiles will be copied to the newly created thinjail if they exist on the base release, thus being secure and more granular management.
2021-03-20 06:12:07 -04:00
Jose 674e8ff087 More validation/checks for export command 2021-02-18 06:48:43 -04:00
Jose 211a268c36 Use which since shell built-in and search for paths 2021-02-08 05:31:16 -04:00
Jose 75ed5b3ce4 Add quick check for pfctl command 2021-02-08 04:17:32 -04:00
Jose 80639062d7 Fix and improve the convert command 2021-02-05 13:59:09 -04:00
Jose b31c8d514b Simplify options parsing and better handling for combined options 2021-02-03 20:39:30 -04:00
Jose 5583ab1d78 Add support bastille RAW image exports/imports, also extended help usage 2021-02-03 18:31:41 -04:00
Jose 15c1505187 Revert jail enable|disable feature by now, requested for later review 2021-01-15 22:28:08 -04:00
Jose 2474382756 Improve interface validation on vnet jail creation 2021-01-12 23:15:39 -04:00
Jose 87944a0fd0 Don't allow underscore in jail name beginning, remove jail from bastille_list on destroy 2021-01-10 18:55:02 -04:00
Jose 6aa84cb3f5 Small cosmetic/typo corrections 2021-01-10 02:26:40 -04:00
Jose ed8ff8bd80 Fix to properly upgrade base releases 2021-01-09 21:24:05 -04:00
Jose 996e7e2b40 Option to enable/disable jail auto-start using sysrc 2021-01-09 16:18:11 -04:00
Jose 665cc19ce6 Properly link shared ports on thin jails 2021-01-08 22:37:18 -04:00
Jose d2fcc011be Feature option for safe ZFS jail exports, config update 2021-01-08 20:30:03 -04:00
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