From: Sasha Levin Subject: [PATCH] kvm tools: Fix loading root device as image Date: Thu, 5 May 2011 22:53:32 +0300 Message-ID: <1304625212-18951-1-git-send-email-levinsasha928@gmail.com> Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, kvm@vger.kernel.org, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:36576 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223Ab1EETxq (ORCPT ); Thu, 5 May 2011 15:53:46 -0400 Received: by wya21 with SMTP id 21so1884317wya.19 for ; Thu, 05 May 2011 12:53:45 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Fix the loading of root device when no image name was specified. Signed-off-by: Sasha Levin --- tools/kvm/kvm-run.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 2ff13d3..d5a952f 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++; } } -- 1.7.5.rc3