From 4faece9e899be1828f372e4ea2fd035034508383 Mon Sep 17 00:00:00 2001 From: HW42 Date: Sat, 24 Jan 2015 22:19:08 +0100 Subject: [PATCH] debian: postinst: use systemctl mask --- debian/qubes-core-agent.postinst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/qubes-core-agent.postinst b/debian/qubes-core-agent.postinst index d7dc396..bac2646 100755 --- a/debian/qubes-core-agent.postinst +++ b/debian/qubes-core-agent.postinst @@ -158,9 +158,8 @@ disableSystemdUnits() { if fgrep -q '[Install]' /lib/systemd/system/${unit}; then systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit} else - # Forcibly disable - echo "Forcibly disabling: ${unit}" - ln -sf /dev/null /etc/systemd/system/${unit} + echo "Masking service: ${unit}" + systemctl mask ${unit} fi else systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit}