From: Sasha Levin Date: Thu, 5 May 2011 19:53:32 +0000 (+0300) Subject: kvm tools: Fix loading root device as image X-Git-Tag: next-20110824~3^2~357 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aef151d80931ae3e400a44f605b18f66e5b1e856;p=karo-tx-linux.git kvm tools: Fix loading root device as image Fix the loading of root device when no image name was specified. Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 2ff13d3ed1e4..d5a952fac033 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -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++; } }