Fixed #1930: Delete autostart Symlink when deleting a VM
This commit is contained in:
parent
01bc257265
commit
d9b8516b6d
@ -1412,6 +1412,11 @@ class QubesVm(object):
|
||||
e.get_error_code())
|
||||
raise
|
||||
|
||||
if os.path.exists("/etc/systemd/system/multi-user.target.wants/qubes-vm@" + self.name + ".service") == True:
|
||||
retcode = subprocess.call(["sudo", "rm", "/etc/systemd/system/multi-user.target.wants/qubes-vm@" + self.name + ".service"])
|
||||
if retcode != 0:
|
||||
raise QubesException("Failed to delete autostart entry for VM")
|
||||
|
||||
self.storage.remove_from_disk()
|
||||
|
||||
def write_firewall_conf(self, conf):
|
||||
|
Loading…
Reference in New Issue
Block a user