mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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:
parent
cc347258b5
commit
0081d1ffeb
@ -1416,7 +1416,7 @@ class VM(Machine):
|
|||||||
|
|
||||||
logger.info('Running `virsh destroy %s`', self.machine_name)
|
logger.info('Running `virsh destroy %s`', self.machine_name)
|
||||||
try:
|
try:
|
||||||
self._virsh(['undefine', self.machine_name],
|
self._virsh(['undefine', '--nvram', self.machine_name],
|
||||||
stdout=subprocess.DEVNULL)
|
stdout=subprocess.DEVNULL)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user