From 748a3a90a292ed79d59a71ef0f22c8a2b5e9ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 25 Jun 2016 00:19:12 +0200 Subject: [PATCH] core: fix handling disabling VM autostart on VM removal QubesOS/qubes-issues#1930 --- core-modules/000QubesVm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 2e1fe8f9..a03585a2 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1414,7 +1414,8 @@ class QubesVm(object): raise if os.path.exists("/etc/systemd/system/multi-user.target.wants/qubes-vm@" + self.name + ".service"): - subprocess.call(["sudo", "systemctl", "-q", "disable","qubes-vm@" + self.name + ".service"]) + retcode = subprocess.call(["sudo", "systemctl", "-q", "disable", + "qubes-vm@" + self.name + ".service"]) if retcode != 0: raise QubesException("Failed to delete autostart entry for VM")