[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: mkinitrd - ask dhclient for root-path
- From: Warren Togami <wtogami redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: PATCH: mkinitrd - ask dhclient for root-path
- Date: Tue, 03 Feb 2009 00:17:21 -0500
Jesse Keating pointed out I should have used a comma instead of space.
The attached patch allows mkinitrd after Hans' 5 patch series to netboot
again.
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 17:07:14.000000000 -0500
@@ -460,7 +460,9 @@
if (setpgrp() == -1)
exit(3);
- if (execl(DHCLIENT, DHCLIENT, "-1", "-sf", "/dev/null", dev, NULL) == -1)
+ eprintf("dev=%s\n",dev);
+ 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]