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

Re: PATCH[0/5]: mkinitrd: fix network boot support



Hans,

https://bugzilla.redhat.com/show_bug.cgi?id=481078
Thanks for looking at this. I filed this bug for this issue. I tried all five patches of your patches. root=dhcp continues to fail because the DHCP Request lacks the root-path option. (Confirmed by looking at it with tcpdump.)

I tried adding the appropriate dhclient -R option of the attached patch. According to dcantrell and the dhclient man page, you have to list all default options before adding your custom option because using -R wipes out all defaults. I might be doing something wrong though, because dhclient prints the syntax help at this point with this patch.

Warren Togami
wtogami redhat com
diff -urN mkinitrd-6.0.75.orig/nash/network.c mkinitrd-6.0.75/nash/network.c
--- mkinitrd-6.0.75.orig/nash/network.c	2009-02-02 16:13:36.000000000 -0500
+++ mkinitrd-6.0.75/nash/network.c	2009-02-02 16:37:26.000000000 -0500
@@ -460,7 +460,8 @@
             if (setpgrp() == -1)
                 exit(3);
 
-            if (execl(DHCLIENT, DHCLIENT, "-1", "-sf", "/dev/null", dev, NULL) == -1)
+            if (execl(DHCLIENT, DHCLIENT, "-1", "-sf", "/dev/null", dev, 
+                "-R subnet-mask,broadcast-address,time-offset,routers,domain-name,domain-name-servers,host-name,nis-domain,nis-servers,ntp-servers,root-path", NULL) == -1)
                 exit(3);
         } else if (pid == -1) {
             eprintf("Failed to fork to start dhclient: %m\n");

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