Skip to content

Commit

Permalink
Add bind /sys/module to nspawn default args
Browse files Browse the repository at this point in the history
  • Loading branch information
Jip-Hop committed Jan 27, 2024
1 parent 9dc1bc3 commit 303f79a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jlmkr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
]

Expand Down Expand Up @@ -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"""
Expand Down

0 comments on commit 303f79a

Please sign in to comment.