* [PATCH] kvm tools: Add missing space before root= option
@ 2011-04-20 15:49 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2011-04-20 15:49 UTC (permalink / raw)
To: Pekka Enberg; +Cc: kvm-vger
If user pases own options we need an extra space otherwise
options get joined.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-20 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 15:49 [PATCH] kvm tools: Add missing space before root= option Cyrill Gorcunov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).