Skip to contentSkip to conversation

kvm tools: Add missing space before root= option

PATCH New Cyrill Gorcunov 1 participant 1 message Apr 20, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm tools: Add missing space before root= option

If user pases own options we need an extra space otherwise options get joined.

---
 tools/kvm/kvm-run.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/kvm/kvm-run.c +1 -1
Index: linux-2.6.git/tools/kvm/kvm-run.c
=====================================================================
@@ -383,7 +383,7 @@ int kvm_cmd_run(int argc, const char **a
 	}
 
 	if (!strstr(real_cmdline, "root="))
-		strlcat(real_cmdline, "root=/dev/vda rw ", sizeof(real_cmdline));
+		strlcat(real_cmdline, " root=/dev/vda rw ", sizeof(real_cmdline));
 
 	if (image_filename) {
 		kvm->disk_image	= disk_image__open(image_filename, readonly_image);