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:
parent
2a9ac57250
commit
628cf1f73b
10
jlmkr.py
10
jlmkr.py
|
@ -640,8 +640,14 @@ def create_jail(jail_name, distro='debian', release='bullseye'):
|
||||||
# --bind-ro='/mnt/data/weird chars \:?\\"'
|
# --bind-ro='/mnt/data/weird chars \:?\\"'
|
||||||
|
|
||||||
print(dedent("""
|
print(dedent("""
|
||||||
For example to mount directories inside the jail you may add:
|
Would you like to add additional systemd-nspawn flags?
|
||||||
--bind='/mnt/data/a writable directory/' --bind-ro='/mnt/data/a readonly directory/'
|
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
|
# Enable tab auto completion of file paths after the = symbol
|
||||||
|
|
Loading…
Reference in New Issue