Fallback to bullseye

This commit is contained in:
Jip-Hop 2023-08-24 10:03:48 +02:00
parent 645c758e50
commit cab79e3a24
1 changed files with 5 additions and 2 deletions

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 \ DESCRIPTION = "Create persistent Linux 'jails' on TrueNAS SCALE, with full access to all files \
via bind mounts, thanks to systemd-nspawn!" via bind mounts, thanks to systemd-nspawn!"
VERSION = '0.0.10' VERSION = '0.0.11'
JAILS_DIR_PATH = 'jails' JAILS_DIR_PATH = 'jails'
JAIL_CONFIG_NAME = 'config' JAIL_CONFIG_NAME = 'config'
@ -625,7 +625,10 @@ def create_jail(jail_name, distro='debian', release='bullseye'):
if agree('Show the man page for systemd-nspawn?', 'n'): if agree('Show the man page for systemd-nspawn?', 'n'):
subprocess.run(['man', 'systemd-nspawn']) subprocess.run(['man', 'systemd-nspawn'])
else: else:
try:
base_os_version = platform.freedesktop_os_release().get('VERSION_CODENAME', release) base_os_version = platform.freedesktop_os_release().get('VERSION_CODENAME', release)
except AttributeError:
base_os_version = release
print(dedent(f""" print(dedent(f"""
You may read the systemd-nspawn manual online: You may read the systemd-nspawn manual online:
https://manpages.debian.org/{base_os_version}/systemd-container/systemd-nspawn.1.en.html""")) https://manpages.debian.org/{base_os_version}/systemd-container/systemd-nspawn.1.en.html"""))