[pve-devel] [PATCH lxc 1/2] postinst: ignore lxc.service reload errors

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Nov 6 11:08:53 CET 2019


otherwise this could fail posinst execution (and thus package
installation!) on systems coming from plain Debian, or where lxc.service
is masked.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    noticed this when attempting to cleanly build pve-manager..

 debian/lxc-pve.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/lxc-pve.postinst b/debian/lxc-pve.postinst
index 5631b2d..776b0b6 100644
--- a/debian/lxc-pve.postinst
+++ b/debian/lxc-pve.postinst
@@ -15,7 +15,7 @@ case "$1" in
 	# (to run unprivileged containers as root)
 	usermod -v 100000-165535 -w 100000-165535 root
 
-	deb-systemd-invoke reload-or-try-restart lxc.service
+	deb-systemd-invoke reload-or-try-restart lxc.service >/dev/null || true
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
-- 
2.20.1





More information about the pve-devel mailing list