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.gruenbich...@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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to