Issue with Aquiring DHCP

Jeroen Roodhart jeroen at science.uva.nl
Thu Jun 10 16:30:46 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

|Brians on the right track with regard to port-fast.

Maybe so, but we tried a lot of different settings over here and it
didn't work at all.

What works over here is to apply a small patch to the anaconda nfsmount
(isys/nfsmount.c) code. This uses NFS over UDP but doesn't do any error
recovery. Turns out that it only once tries to do a pmap_getmaps, when
that fails this results in the visible error of not being able to get
the kickstart configuration file.

Just retrying for a maximum number of retries fixes things for us...
(This is not my idea, I saw a patch for this in the kicktstart list...)

With kind regards,

Jeroen

<PATCH>
*** nfsmount.c  2004-05-06 23:40:21.000000000 +0200
- --- /scratch/nfsmount.c 2004-06-10 12:55:56.600409365 +0200
***************
*** 198,209 ****
~  {
~  struct pmaplist *pmap;
~  static struct pmap p = {0, 0, 0, 0};

~  server_addr->sin_port = PMAPPORT;
~  pmap = pmap_getmaps(server_addr);

! if (!pmap)
!       return NULL;

~  if (version > MAX_NFSPROT)
~        version = MAX_NFSPROT;
- --- 198,218 ----
~  {
~  struct pmaplist *pmap;
~  static struct pmap p = {0, 0, 0, 0};
+ int retries = 0;

~  server_addr->sin_port = PMAPPORT;
~  pmap = pmap_getmaps(server_addr);

! if (!pmap) {
!       while (!pmap && (retries < 30)) {
!               sleep(1);
!               pmap = pmap_getmaps(server_addr);
!               retries++;
!       }
!       if (!pmap)
!               return NULL;
! }
!

~  if (version > MAX_NFSPROT)
~        version = MAX_NFSPROT;
</PATCH>
- --
Jeroen Roodhart              University of Amsterdam
jeroen at science.uva.nl        Faculty of Science / ICT-Group
Systeem- en netwerkbeheer    Tel. 020 525 7203 / 06 51338165
- --
See http://www.science.uva.nl/~jeroen for openPGP public key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAyIy237AP1zFtDU0RAsAJAKDEdfUHqnQSlFcIuvtg9SvboPyQegCdGMR4
VXFB4O8OqAjDPxH+If7Yia8=
=N2W2
-----END PGP SIGNATURE-----





More information about the Kickstart-list mailing list