More detailed examples in flags section of create jail function

I hate having to open the github everytime I want to make a jail with a macvlan static IP (often). So it would be nice to give better examples during the installer.
This commit is contained in:
spusuf 2023-10-24 11:54:11 +10:00 committed by GitHub
parent 2a9ac57250
commit 628cf1f73b
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