Skip to contentSkip to conversation

kvm tools: Fix loading root device as image

PATCH New Sasha Levin 1 participant 1 message May 5, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm tools: Fix loading root device as image

Fix the loading of root device when no image name was specified.

---
 tools/kvm/kvm-run.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/kvm/kvm-run.c +1 -0
index 2ff13d3..d5a952f 100644
@@ -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++;
 		}
 	}
 
Signature · 1 line
1.7.5.rc3