From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH 1/2] kvm tools: Remove double 'init=' kernel param Date: Fri, 2 Dec 2011 09:16:54 +0200 Message-ID: <1322810215-9647-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:45575 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254Ab1LBHRT (ORCPT ); Fri, 2 Dec 2011 02:17:19 -0500 Received: by wgbdr13 with SMTP id dr13so607245wgb.1 for ; Thu, 01 Dec 2011 23:17:18 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Sasha Levin --- tools/kvm/builtin-run.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 43cf2c4..33de4f6 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) { -- 1.7.8.rc4