From d5e6b9fa5d5a8d08f79b379bc95c42926abbc047 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Fri, 2 Dec 2011 09:16:54 +0200 Subject: [PATCH] kvm tools: Remove double 'init=' kernel param Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/builtin-run.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 43cf2c448b21..33de4f6ef927 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -856,9 +856,6 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) if (virtio_9p__register(kvm, "/", "hostfs") < 0) die("Unable to initialize virtio 9p"); using_rootfs = custom_rootfs = 1; - - if (!strstr(real_cmdline, "init=")) - strlcat(real_cmdline, " init=/bin/sh ", sizeof(real_cmdline)); } if (using_rootfs) { -- 2.39.5