mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
container: Pass --nvram option to virsh undefine
- Similar to the way we did in another place. Otherwise, the command won't work on UEFI based VMs. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 file changed
+1
-1
@@ -1416,7 +1416,7 @@ class VM(Machine):
|
||||
|
||||
logger.info('Running `virsh destroy %s`', self.machine_name)
|
||||
try:
|
||||
self._virsh(['undefine', self.machine_name],
|
||||
self._virsh(['undefine', '--nvram', self.machine_name],
|
||||
stdout=subprocess.DEVNULL)
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user