Issue with Aquiring DHCP

Philip Rowlands phr at doc.ic.ac.uk
Wed Jun 9 22:48:31 UTC 2004


I posted this on May 12th, but here it is again:

https://rhn.redhat.com/errata/RHBA-2004-195.html

"
Bug fixes include:
- Increase amount of time we wait for network controllers to establish a
link
"

The exact patch to do this is below. In short, the default time to wait
for a link was 5 seconds, is now 15, and can be set via the "linksleep="
command line parameter.

Note: this feature was introduced in 9.1.2, so is present only in
RHEL3U2, not even Fedora Core 2 (anaconda v10) from checking...



diff -rc -C 1 anaconda-9.1/loader2/loader.c
anaconda-9.1.2/loader2/loader.c
*** anaconda-9.1/loader2/loader.c       Fri Sep 26 22:38:41 2003
--- anaconda-9.1.2/loader2/loader.c     Tue Apr 13 21:14:10 2004
***************
*** 88,89 ****
--- 88,90 ----

+ int num_link_checks = 15;
***************
*** 528,529 ****
--- 528,531 ----
              loaderData->ethtool = strdup(argv[i] + 8);
+         else if (!strncasecmp(argv[i], "linksleep=", 10))
+             num_link_checks = atoi(argv[i] + 10);
          else if (numExtraArgs < (MAX_EXTRA_ARGS - 1)) {
diff -rc -C 1 anaconda-9.1/loader2/loader.h
anaconda-9.1.2/loader2/loader.h
*** anaconda-9.1/loader2/loader.h       Mon Jul  7 23:50:55 2003
--- anaconda-9.1.2/loader2/loader.h     Tue Apr 13 21:14:10 2004
***************
*** 94,95 ****
--- 94,97 ----

+ extern int num_link_checks;
+
  /* 64 bit platforms, definitions courtesy of glib */

diff -rc -C 1 anaconda-9.1/loader2/net.c anaconda-9.1.2/loader2/net.c
*** anaconda-9.1/loader2/net.c  Thu Sep  4 20:57:24 2003
--- anaconda-9.1.2/loader2/net.c        Tue Apr 13 20:57:37 2004
***************
*** 125,127 ****
      logMessage("waiting for link...");
!     while (tries < 5) {
          if (get_link_status(dev) != 0)
--- 125,127 ----
      logMessage("waiting for link...");
!     while (tries < num_link_checks) {
          if (get_link_status(dev) != 0)


Cheers,
Phil





More information about the Kickstart-list mailing list