Create bookworm jail by default

This commit is contained in:
Jip-Hop 2023-10-28 10:52:31 +02:00
parent 845ac60535
commit fd5d987de4
2 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,6 @@ Persistent Linux 'jails' on TrueNAS SCALE to install software (docker-compose, p
## Disclaimer
**USING THIS SCRIPT IS AT YOUR OWN RISK! IT COMES WITHOUT WARRANTY AND IS NOT SUPPORTED BY IXSYSTEMS.**
**THIS SCRIPT NEEDS MORE COMMUNITY TESTING BEFORE ITS FIRST 1.0.0 RELEASE.**
## Summary
@ -13,7 +12,7 @@ TrueNAS SCALE can create persistent Linux 'jails' with systemd-nspawn. This scri
- Installing the systemd-container package (which includes systemd-nspawn)
- Setting up the jail so it won't be lost when you update SCALE
- Choosing a distro (Debian 11 strongly recommended, but Ubuntu, Arch Linux or Rocky Linux seem good choices too)
- Choosing a distro (Debian 12 strongly recommended, but Ubuntu, Arch Linux or Rocky Linux seem good choices too)
- Optional: configuring the jail so you can run Docker inside it
- Optional: GPU passthrough (including [nvidia GPU](README.md#nvidia-gpu) with the drivers bind mounted from the host)
- Starting the jail with your config applied
@ -144,6 +143,10 @@ To make passthrough of the nvidia GPU work, you need to schedule a Pre Init comm
[ ! -f /dev/nvidia-uvm ] && modprobe nvidia-current-uvm && /usr/bin/nvidia-modprobe -c0 -u
```
## Documentation
Additional documentation contributed by the community can be found in [the docs directory](./docs/).
## Comparison
TODO: write comparison between systemd-nspawn (without `jailmaker`), LXC, VMs, Docker (on the host).

View File

@ -39,7 +39,7 @@ IT COMES WITHOUT WARRANTY AND IS NOT SUPPORTED BY IXSYSTEMS.{NORMAL}"""
DESCRIPTION = "Create persistent Linux 'jails' on TrueNAS SCALE, with full access to all files \
via bind mounts, thanks to systemd-nspawn!"
VERSION = '0.0.11'
VERSION = '1.0.0'
JAILS_DIR_PATH = 'jails'
JAIL_CONFIG_NAME = 'config'
@ -512,7 +512,7 @@ def check_jail_name_available(jail_name, warn=True):
return False
def create_jail(jail_name, distro='debian', release='bullseye'):
def create_jail(jail_name, distro='debian', release='bookworm'):
"""
Create jail with given name.
"""