]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Fix loading root device as image
authorSasha Levin <levinsasha928@gmail.com>
Thu, 5 May 2011 19:53:32 +0000 (22:53 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 5 May 2011 20:00:39 +0000 (23:00 +0300)
Fix the loading of root device when no image name was
specified.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-run.c

index 2ff13d3ed1e47c6e778fc00634e253abf18938b6..d5a952fac0331c9b56b97ebd13bc151d09be7d49 100644 (file)
@@ -420,6 +420,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
                if (hi) {
                        image_filename[0] = hi;
                        readonly_image[0] = true;
+                       image_count++;
                }
        }