kvm tools: Remove double 'init=' kernel param

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Sasha Levin
2015-06-01 16:39:49 +01:00
committed by Will Deacon
parent 51476e4751
commit 8a585d136b
-3
View File
@@ -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) {