From fc122ca7d03bfc6335280e1c5a75a5dca8e6369e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Thu, 12 Dec 2024 21:33:54 -0500 Subject: [PATCH] lxc.generator: Fix systemd-networkd on recent distros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- distrobuilder/lxc.generator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrobuilder/lxc.generator b/distrobuilder/lxc.generator index f6f2cb9a..07d59c16 100644 --- a/distrobuilder/lxc.generator +++ b/distrobuilder/lxc.generator @@ -197,8 +197,8 @@ if [ ! -d /dev/.lxc ]; then done fi - # Workarounds for privileged containers. - if { [ "${ID}" = "altlinux" ] || [ "${ID}" = "arch" ] || [ "${ID}" = "fedora" ]; } && ! is_lxc_privileged_container; then + # Workarounds for unprivileged containers. + if ! is_lxc_privileged_container; then fix_ro_paths systemd-networkd.service fix_ro_paths systemd-resolved.service fi