From 8a585d136b58c780b2e9f0f368178bd9e24bff1f 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 --- builtin-run.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/builtin-run.c b/builtin-run.c index 43cf2c4..33de4f6 100644 --- a/builtin-run.c +++ b/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) {