Commit Graph
100 Commits
Author SHA1 Message Date
JRGTH b69eedc066 Allow 'bastille cmd' on Linux jails
Allow executing commands on Linux jails with `bastille cmd`.
2022-05-16 09:34:37 -04:00
JRGTH 9052271232 Consistency improvements 2022-01-17 20:47:48 -04:00
JRGTH a62f36333d Update Linuxjail name entries upon jail renaming 2022-01-16 14:00:23 -04:00
JRGTH 03b9817f5a Initial support for clone jails 2022-01-15 11:32:28 -04:00
JRGTH 91bb955dd5 Bugfix to prevent double directory creation when bootstrapping Linux releases 2022-01-14 09:07:32 -04:00
JRGTH e11ed392f6 Fix to allow 32-Bit base releases to be updated 2022-01-13 20:39:07 -04:00
JRGTH af0e9a95a4 Allow --safe to be added to defined options 2022-01-04 17:17:36 -04:00
JRGTH 26e8f382e4 Override case options by the user defined option(s) 2022-01-04 17:03:07 -04:00
JRGTH 788e4c283b Make sure to check/bootstrap directories first 2022-01-03 09:23:10 -04:00
JRGTH 1e32811ea6 Update bootstrap.sh 2021-09-20 04:47:25 -04:00
JRGTH c0e2499dfc Bootstrap cmd consistency updates/improvements 2021-09-13 05:06:23 -04:00
JRGTH 125b829872 Small cosmetic changes/readability 2021-08-07 13:33:57 -04:00
JRGTH e92451b37c Add debian stretch/buster, small changes 2021-08-07 13:17:32 -04:00
JRGTH 9967a56e64 Improvements for Linux releases and code maintenance 2021-08-06 19:44:25 -04:00
JRGTH 9d3cb5f5e3 Merge remote-tracking branch 'upstream/master' 2021-08-06 17:22:22 -04:00
JRGTH c90fea3066 Extra validation on Linux Jails, revert cp.sh to avoid issues with templates 2021-07-15 16:30:36 -04:00
JRGTH 494d811c32 Use statement here 2021-07-15 12:32:37 -04:00
JRGTH d8f925b1c8 Merge remote-tracking branch 'upstream/master' 2021-07-15 12:26:28 -04:00
JRGTH 2caf01b722 Cosmetics changes to prevent double "/" 2021-07-14 16:50:35 -04:00
JRGTH f39168b9c2 Be more specific with export/import command options 2021-07-14 15:02:12 -04:00
JRGTH e564d50b2c Code review/cleanup routine 2021-07-14 13:57:09 -04:00
JRGTH c80b9da9ef Revert changes, colors will be disabled by env variable 2021-07-13 09:05:15 -04:00
JRGTH 64cc7747c8 Disable colors if "NO_COLOR" env variable present 2021-07-13 09:02:55 -04:00
JRGTH 50c09d0359 Feature to disable output colors 2021-07-13 04:49:25 -04:00
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