mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 21:21:54 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user