diff options
| author | cajun-rat <phil@advancedtelematic.com> | 2018-01-18 13:48:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-18 13:48:44 +0100 |
| commit | 0f064ae564321e949f18b156342a52a96e51d2a9 (patch) | |
| tree | d7e4ab954d85112a01296867bddb9359bc66d74e /scripts | |
| parent | 623c51d713f359210874dd50c1394bcc901228ec (diff) | |
| parent | b5b2458b320bd88599bcd3af02566712c8877c1c (diff) | |
| download | meta-updater-0f064ae564321e949f18b156342a52a96e51d2a9.tar.gz | |
Merge pull request #230 from advancedtelematic/bugfix/update-rocko
Bugfix/update rocko
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/qemucommand.py | 11 |
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 | |||
