Merge pull request #45 from spusuf/patch-1

More detailed examples in flags section of create jail function
This commit is contained in:
Jip-Hop 2023-10-24 08:40:39 +02:00 committed by GitHub
commit 845ac60535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -640,8 +640,14 @@ def create_jail(jail_name, distro='debian', release='bullseye'):
# --bind-ro='/mnt/data/weird chars \:?\\"'
print(dedent("""
For example to mount directories inside the jail you may add:
--bind='/mnt/data/a writable directory/' --bind-ro='/mnt/data/a readonly directory/'
Would you like to add additional systemd-nspawn flags?
For example to mount directories inside the jail you may:
Mount the TrueNAS location /mnt/pool/dataset to the /home directory of the jail with:
--bind='/mnt/pool/dataset:/home'
Or the same, but readonly, with:
--bind-ro='/mnt/pool/dataset:/home'
Or create MACVLAN interface for static IP, with:
--network-macvlan=eno1 --resolv-conf=bind-host
"""))
# Enable tab auto completion of file paths after the = symbol