diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-27 10:41:02 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-30 09:42:55 -1000 |
commit | 21a42d450e169ece3d1feef6ebef92aad5f2e635 (patch) | |
tree | 28fb83b6d96dd31901b062a565ce352cadaf6c49 | |
parent | c1aaab41558216ea1ba16400aaad60657fa76dae (diff) | |
download | anaconda-21a42d450e169ece3d1feef6ebef92aad5f2e635.tar.gz anaconda-21a42d450e169ece3d1feef6ebef92aad5f2e635.tar.xz anaconda-21a42d450e169ece3d1feef6ebef92aad5f2e635.zip |
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.
-rw-r--r-- | loader/net.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) |