aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2015-11-06 16:10:34 -0800
committerAndy Lutomirski <luto@kernel.org>2015-11-06 16:10:34 -0800
commitf3b9040d21cb2002ff8fc5c557fdafaddd4d9156 (patch)
tree8ea674e7c61e31cb7e5e7f6c2932d353c2e43ee9
parent4a17ea308cd14355dc8ff56f2fb7e4d5fb54d10e (diff)
downloadvirtme-f3b9040d21cb2002ff8fc5c557fdafaddd4d9156.tar.gz
run: Respect arch.qemuname
All current arches have qemuname matching the arch name, but this may change for future arches. Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rw-r--r--virtme/commands/run.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/virtme/commands/run.py b/virtme/commands/run.py
index 4e73603..75cc337 100644
--- a/virtme/commands/run.py
+++ b/virtme/commands/run.py
@@ -166,16 +166,16 @@ _RWDIR_RE = re.compile('^(%s)(?:=(%s))?$' %
def main():
args = _ARGPARSER.parse_args()
- qemu = qemu_helpers.Qemu(args.arch)
+ arch = architectures.get(args.arch)
+ is_native = (args.arch == uname.machine)
+
+ qemu = qemu_helpers.Qemu(arch.qemuname)
qemu.probe()
need_initramfs = args.force_initramfs or qemu.cannot_overmount_virtfs
config = mkinitramfs.Config()
- arch = architectures.get(args.arch)
- is_native = (args.arch == uname.machine)
-
kimg,dtb,modfiles,moddir = find_kernel_and_mods(arch, args)
config.modfiles = modfiles
if config.modfiles: