From 21a42d450e169ece3d1feef6ebef92aad5f2e635 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 27 Mar 2009 10:41:02 -1000 Subject: Do not prompt for NIC selection in cmdline mode (#492586) If we need to ask the user which NIC to use and are in cmdline mode, tell them we cannot do that and exit. --- loader/net.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'loader') diff --git a/loader/net.c b/loader/net.c index 84ddd7a6d..3a3fae9d1 100644 --- a/loader/net.c +++ b/loader/net.c @@ -1791,6 +1791,15 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) { logMessage(WARNING, "wanted netdev with link, but none present. prompting"); } + if (FL_CMDLINE(flags)) { + fprintf(stderr, "No way to determine which NIC to use, and cannot " + "prompt in cmdline\nmode. Halting.\n"); + fprintf(stderr, "Please use the ksdevice= parameter to specify the " + "device name (e.g., eth0)\n or the MAC address of " + "the NIC to use for installation.\n"); + exit(1); + } + startNewt(); if (max > 70) -- cgit