浏览代码

debian: postinst: use systemctl to set default target

HW42 9 年之前
父节点
当前提交
07c2f2a5f4
共有 1 个文件被更改,包括 1 次插入2 次删除
  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