From: Sasha Levin Date: Fri, 2 Dec 2011 07:16:54 +0000 (+0200) Subject: kvm tools: Remove double 'init=' kernel param X-Git-Tag: next-20111206~2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d5e6b9fa5d5a8d08f79b379bc95c42926abbc047;p=karo-tx-linux.git kvm tools: Remove double 'init=' kernel param Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- 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) {