From c5d0b4e5de19e904ae8e80e24aa58f9630ec05c3 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 18 Apr 2012 10:24:12 +0200 Subject: [PATCH] dom0/core: remove appmenus for HVM on qvm-remove (#23 pro) --- dom0/qvm-core/qubes.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 1706877a..cdd99627 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2208,6 +2208,19 @@ class QubesHVm(QubesVm): f_private.truncate(default_hvm_private_img_size) f_root.close() + def remove_from_disk(self): + if dry_run: + return + + self.remove_appmenus() + super(QubesHVm, self).remove_from_disk() + + def pre_rename(self, new_name): + self.remove_appmenus() + + def post_rename(self, old_name): + self.create_appmenus(False) + def get_disk_utilization_private_img(self): return 0