Commit Graph

155 Commits

Author SHA1 Message Date
Jip-Hop 5a29d4ad26 Remove wizard
Let's hope iX will introduce web GUI support for Sandboxes so users won't need an interactive CLI wizard.
2024-07-11 20:02:11 +02:00
Jip-Hop 32843daf49 Fix systemd_nspawn_user_args override 2024-07-09 14:41:35 +02:00
Jip-Hop d0a532f0dc Fix systemd_nspawn_user_args override 2024-07-09 13:41:16 +02:00
Jip-Hop 414df22757 Formatting 2024-07-09 12:49:13 +02:00
Jip-Hop 29cb1ee77e Cleanup jail if lxc download script fails 2024-07-09 12:48:36 +02:00
Jip-Hop 9fcb5d52a1 Add TODO 2024-07-09 04:27:34 +02:00
Jip-Hop 762b83a8c8 Cast int to string
Closed  #224
2024-07-09 04:21:09 +02:00
Jip-Hop 9da33ab2b0 Stay in workdir
Fixes #209
2024-07-07 15:50:47 +02:00
Jip-Hop 21efe90062 Fix Python 3.12 SyntaxWarning
SyntaxWarning: invalid escape sequence
2024-06-29 16:43:17 +02:00
Jip-Hop 01e1156832 Accept config template from stdin
Closes #208
2024-06-28 15:51:01 +02:00
Jip-Hop e1f1d07872 Remove debug logging 2024-06-28 13:58:32 +02:00
Jip-Hop 1bd58c951e Cleanup log and status code 2024-06-28 13:56:47 +02:00
Lockszmith 1b796ca2cf Added passing arguments to log and status
This allows automated tests to run smoother.

Currently there are 2 tests that block the console for input:
* edit
* shell
2024-06-28 11:53:14 +02:00
Jip-Hop dd30ffe255 Chroot with contextmanager 2024-06-24 14:04:40 +02:00
Jip-Hop 1fa69d6bcc Bump version to 2.1.0 2024-06-24 10:29:51 +02:00
Jip-Hop 32143a9907 Add support for nixos 2024-06-24 10:29:24 +02:00
Jip-Hop 7832b17ae1 Detect init system in chroot 2024-06-24 10:24:33 +02:00
Jip-Hop 51884e215c Parse os-release in chroot
To parse the right os-release file case of absolute symlinks
2024-06-24 10:17:33 +02:00
Jip-Hop 49d65c1073 Fix case 2024-06-24 09:55:41 +02:00
Jip-Hop 804be6d760 Put initial_setup script in jail root 2024-06-24 09:41:24 +02:00
Jip-Hop 2ce89c2945 Fix removal of immutable/append-only files 2024-06-23 13:01:21 +02:00
Jip-Hop f87e372dae Fix removal of resolv.conf 2024-06-23 11:27:48 +02:00
Jip-Hop cb94ee01f6 Bump version to 2.0.1 2024-06-15 12:05:56 +02:00
Jip-Hop 43b1197b5c Document DHCP slowness due to STP 2024-06-15 12:02:32 +02:00
Jip-Hop 07f405ef73 Bump version to 2.0.0 2024-05-28 20:18:30 +02:00
Jip-Hop 9b6db0b660 Add license and copyright 2024-05-28 20:10:14 +02:00
Jip-Hop 927d4aa1ac Remove tab auto complete from interactive create 2024-05-28 19:46:51 +02:00
Jip-Hop 8c58673692 Remove deprecated config options and commands
Removed commands:
- install
Removed config options:
- gpu_passthrough
- docker_compatible
2024-05-28 19:44:54 +02:00
Jip-Hop 0cda68c0a9 Support veth-extra for additional bridges 2024-05-20 19:37:59 +02:00
Jip-Hop 511cf5d287 Properly handle path with spaces
Fix for #177
2024-05-20 13:44:28 +02:00
Darren Gibbard 525992727a
Fix for Nvidia Passthrough (#166)
* Fix Nvidia Passthrough closing #127
* Mount libraries parent directory
* Use the dynamic library path from the existing code
2024-05-11 10:29:16 +02:00
Jip-Hop 03fcb961b7 Log jail name after initial setup 2024-05-08 22:49:28 +02:00
Jip-Hop 2f4a113cf1 Bump version to 1.4.0 2024-05-08 22:25:19 +02:00
Jip-Hop 4cd7c54c58 Run initial_setup once jail starts for first time
First jail startup will now wait for init system and networking to be ready before running the initial_setup script inside the jail. All systemd_nspawn_user_args are now applied and the initial_setup script will have access to filed mounted via bind mounts.
2024-05-08 22:21:06 +02:00
Jip-Hop 93267b6ec6 Formatting 2024-05-08 18:59:58 +02:00
Max Nordlund 487b0cde68
Follow Debian guidelines for launching editors (#157)
* Follow Debian guidelines for launching editors

When jailmaker wants to ask the user to edit a file, mostly a jail
config, it currently uses `nano`. This is not how a program is supposed
to work according to [Debian's guidelines]. This changes the hardcoded
`nano` to look up the correct editor to use using environmental
variables.

[1]: https://www.debian.org/doc/debian-policy/ch-customized-programs.html#editors-and-pagers

* Bump version to 1.3.0

---------

Co-authored-by: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com>
2024-05-07 20:02:36 +02:00
Jip-Hop 2e09de47b7 Support spaces in pool and dataset name 2024-04-26 16:47:56 +02:00
Jip-Hop fe8fcf3807
Correct semver (#134)
Bump version to 1.2.0
2024-04-24 17:21:45 +02:00
Jip-Hop 9661f4ff19
Deprecate docker_compatible and gpu_passthrough (#121)
Remove --property=DeviceAllow= so it won't interfere with DevicePolicy=auto
Added seccomp config option
Deprecated docker_compatible config option
Deprecated gpu_passthrough config option
Removed the docker_compatible question during interactive create
Updated readme and config templates
Closes https://github.com/Jip-Hop/jailmaker/issues/119
2024-04-22 20:50:40 +02:00
TempleHasFallen a7c4b9dbad
Added Full ZFS Dataset Support (#118)
Added Full ZFS Dataset Support:

- The script will now create a ZFS dataset for each jail if the 'jailmaker' directory is a ZFS dataset
- The script will create the 'jails' directory as a dataset if the 'jailmaker' directory is a ZFS dataset
- The script will now remove the ZFS dataset (including snapshots) when deleting the jail
- Dual mode: For legacy use without datasets, it will continue to work as previously

Added a guide to migrate from using directories to using ZFS datasets.

Closes #80.

---------

Co-authored-by: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com>
2024-04-14 16:07:47 +02:00
Matthias Schabhüttl f046dd3d32
Fix for hostname of LXC not set correctly (#116)
* Remove unnecessary script trim in jlmkr

* Update download script digest hash

* Bump version to 1.1.3

* Remove unused method

---------

Co-authored-by: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com>
2024-04-07 18:41:55 +02:00
Jip-Hop d3e35d2b0a Bump version to 1.1.2 2024-04-07 12:56:10 +02:00
Jip-Hop ff11d7416a Use updated lxc-download script from upstream 2024-04-07 12:54:47 +02:00
Jip-Hop a65bf03445 Update cleanup docstring 2024-04-07 11:58:09 +02:00
Jip-Hop eee3abef8e Stat_chmod jails dir during non-interactive create 2024-04-06 11:20:31 +02:00
Jip-Hop 27d090919e Continue after failed nvidia kernel module load 2024-03-07 19:30:13 +01:00
Jip-Hop f210f015f2 Add warnings to non-interactive create 2024-03-07 19:27:43 +01:00
Jip-Hop d1f86a186c Improve exception handling 2024-03-02 23:17:06 +01:00
Jip-Hop 5318635b92 Bump version to 1.1.1 2024-03-02 22:20:00 +01:00
Jip-Hop a12e04aa2f Fix GPU passthrough 2024-03-02 22:18:48 +01:00