summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-02-22 09:03:28 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-02-22 09:03:28 +0000
commit84fba9f8976add8f9267f79504ef8df99f9fab5a (patch)
tree79a42ac5e20e8dd2d8c1f350a1d9b0498509d214 /scripts
parent139e8dc63b81844a98a4208150d148b708a33867 (diff)
downloadvyos-build-84fba9f8976add8f9267f79504ef8df99f9fab5a.tar.gz
vyos-build-84fba9f8976add8f9267f79504ef8df99f9fab5a.zip
T5024: Try to shutdown several times for qemu install script
The first shutdown for qemu doesn't work Try to shutdown several times
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index ff818a10..7aedd1a1 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019-2022, VyOS maintainers and contributors
+# Copyright (C) 2019-2023, VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -185,6 +185,10 @@ def shutdownVM(c, log, message=''):
log.info('Shutting down virtual machine')
for i in range(30):
log.info('Waiting for shutdown...')
+ # Shutdown in qemu doesnt work first time
+ # Use this workaround
+ # https://vyos.dev/T5024
+ c.sendline('poweroff now')
if not c.isalive():
log.info('VM is shut down!')
break