[pve-devel] [PATCH] d/postinst: don't treat reload/restart failure as fatal

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Apr 11 11:45:36 CEST 2024


aborting apt invocations because of service failures like that is always
painful, and lxcfs is in a lot of our build-dep chains, and build environments
might not run systemd as init.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 debian/lxcfs.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/lxcfs.postinst b/debian/lxcfs.postinst
index 558a0d0..ae1b7a2 100644
--- a/debian/lxcfs.postinst
+++ b/debian/lxcfs.postinst
@@ -15,7 +15,7 @@ case "$1" in
     unit=lxcfs.service
     if systemctl -q is-enabled "$unit"; then
         systemctl --system daemon-reload >/dev/null || true
-        deb-systemd-invoke $dh_action "$unit"
+        deb-systemd-invoke $dh_action "$unit" || true
     fi
   ;;
 
-- 
2.39.2





More information about the pve-devel mailing list