From 303f79a3ae910243796ae901b5f50a482ca71f28 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Sat, 27 Jan 2024 12:22:39 +0100 Subject: [PATCH] Add bind /sys/module to nspawn default args --- jlmkr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jlmkr.py b/jlmkr.py index 1dbf1c4..32d9546 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -324,7 +324,6 @@ def start_jail(jail_name, check_startup_enabled=False): # https://manpages.debian.org/bookworm/manpages/sysfs.5.en.html systemd_nspawn_additional_args = [ f"--machine={jail_name}", - "--bind-ro=/sys/module", f"--directory={JAIL_ROOTFS_NAME}", ] @@ -979,7 +978,7 @@ def create_jail(jail_name, distro="debian", release="bookworm"): "--setenv=SYSTEMD_NSPAWN_LOCK=0", ] - systemd_nspawn_default_args = ["--keep-unit", "--quiet", "--boot"] + systemd_nspawn_default_args = ["--keep-unit", "--quiet", "--boot", "--bind-ro=/sys/module"] config = cleandoc( f"""