Browse Source

debian: postinst: use systemctl mask

HW42 9 years ago
parent
commit
4faece9e89
1 changed files with 2 additions and 3 deletions
  1. 2 3
      debian/qubes-core-agent.postinst

+ 2 - 3
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}