Message ID | 20230907171655.6996-3-alexandru.elisei@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Change what --nodefaults does and a revert | expand |
diff --git a/builtin-run.c b/builtin-run.c index 21373d41edd6..c26184ea7fc0 100644 --- a/builtin-run.c +++ b/builtin-run.c @@ -252,7 +252,8 @@ static int loglevel_parser(const struct option *opt, const char *arg, int unset) \ OPT_GROUP("Networking options:"), \ OPT_CALLBACK_DEFAULT('n', "network", NULL, "network params", \ - "Create a new guest NIC", \ + "Create a new guest NIC. Pass mode=none to disable"\ + " all network devices", \ netdev_parser, NULL, kvm), \ OPT_BOOLEAN('\0', "no-dhcp", &(cfg)->no_dhcp, "Disable kernel" \ " DHCP in rootfs mode"), \
It can be useful to disable all network devices, for example, to remove the compat warning for the default network device when the guest does not initialize it. This can be done by passing mode=none to the --network command line option, but without in-depth knowledge of the code, there is no way for the user to know this. Update the help message for -n/--network to explain what mode=none does. Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> --- builtin-run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)