From afc9775343a8bf3fa05cc7bbb6535bc129c8e396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Thu, 3 Aug 2023 20:44:27 -0400 Subject: [PATCH] systemd: Make sure subshell returns success MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without that older privileged containers may cause the subshell to return 1 causing the whole generator to exit due to it running under -eu. Signed-off-by: Stéphane Graber --- distrobuilder/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distrobuilder/main.go b/distrobuilder/main.go index 8c6ef586..7624d120 100644 --- a/distrobuilder/main.go +++ b/distrobuilder/main.go @@ -708,6 +708,8 @@ fix_systemd_override_unit() { [ "${systemd_version}" -ge 231 ] && echo "ReadWritePaths="; [ "${systemd_version}" -ge 254 ] && echo "ImportCredential="; fi + + true; } > "${dropin_dir}/zzz-lxc-service.conf" }