[PATCH 3/9] Do not prompt for NIC selection in cmdline mode (#492586)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index 84ddd7a..3a3fae9 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)
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux