Przeglądaj źródła

debian: postinst: use systemctl to set default target

HW42 9 lat temu
rodzic
commit
07c2f2a5f4
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      debian/qubes-core-agent.postinst

+ 1 - 2
debian/qubes-core-agent.postinst

@@ -273,8 +273,7 @@ case "${1}" in
             qubes-qrexec-agent.service
 
         # Set default "runlevel"
-        rm -f /etc/systemd/system/default.target
-        ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
+        systemctl set-default multi-user.target
 
         # Copy ip(|6)tables into place if they do not already exist in filesystem.
         # This prevents conflict with iptables-service with fc21 and also put config