From 628cf1f73b1cb1816714ce8a24f6d9751d02cee2 Mon Sep 17 00:00:00 2001 From: spusuf <86286368+spusuf@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:54:11 +1000 Subject: [PATCH] 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. --- jlmkr.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jlmkr.py b/jlmkr.py index 94fb25a..0fe0f10 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -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