[PATCH] kvm tools: Add missing space before root= option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
---
 tools/kvm/kvm-run.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.git/tools/kvm/kvm-run.c
=====================================================================
--- linux-2.6.git.orig/tools/kvm/kvm-run.c
+++ 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);
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux