summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-01-17 10:22:50 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2018-01-17 10:22:50 +0100
commite5228ae1d05280f2810c90bef16a9046960aa9ca (patch)
tree4301167ac818124a7d38e11aeb362b8345a812c8 /scripts
parent623c51d713f359210874dd50c1394bcc901228ec (diff)
parent0afff0c944763238026283fbb409d038705c6b13 (diff)
downloadmeta-updater-e5228ae1d05280f2810c90bef16a9046960aa9ca.tar.gz
Merge branch 'pyro' into bugfix/update-rocko
Bring over fixes from the last couple months from pyro in rocko.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qemucommand.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py
index 82a9540..9a893d8 100644
--- a/scripts/qemucommand.py
+++ b/scripts/qemucommand.py
@@ -46,7 +46,7 @@ class QemuCommand(object):
46 if len(machines) == 1: 46 if len(machines) == 1:
47 self.machine = machines[0] 47 self.machine = machines[0]
48 else: 48 else:
49 raise ValueError("Could not autodetect machine type from %s" % args.dir) 49 raise ValueError("Could not autodetect machine type. More than one entry in %s. Maybe --machine qemux86-64?" % args.dir)
50 if args.efi: 50 if args.efi:
51 self.bios = 'OVMF.fd' 51 self.bios = 'OVMF.fd'
52 else: 52 else:
@@ -118,10 +118,9 @@ class QemuCommand(object):
118 118
119 def img_command_line(self): 119 def img_command_line(self):
120 cmdline = [ 120 cmdline = [
121 "qemu-img", "create", 121 "qemu-img", "create",
122 "-o", "backing_file=%s" % self.image, 122 "-o", "backing_file=%s" % self.image,
123 "-f", "qcow2", 123 "-f", "qcow2",
124 self.overlay] 124 self.overlay]
125 return cmdline 125 return cmdline
126 126
127