Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH] dhcp: Correct leases directory location
@ 2010-03-31 13:29 Martyn Welch
  2010-03-31 14:01 ` Steve Sakoman
  0 siblings, 1 reply; 4+ messages in thread
From: Martyn Welch @ 2010-03-31 13:29 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi, Steve Sakoman

The DHCP client currently expects to be able to create a leases file in
"/var/lib/dhcp" as configured in dhcp3.inc. Recipe is currently creating a
directory called "/var/lib/dhcp3", resulting in the following error:

can't create /var/lib/dhcp/dhclient.eth0.leases

Correct directory naming to resolve error.

Signed-off-by: Martyn Welch <martyn.welch@ge.com>

---

 Steve: This seems to be directy reversing a change you made. The commit
  message doesn't give me any idea of why you did it, can you remember?

 recipes/dhcp/dhcp3.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/dhcp/dhcp3.inc b/recipes/dhcp/dhcp3.inc
index f099003..5507f1c 100644
--- a/recipes/dhcp/dhcp3.inc
+++ b/recipes/dhcp/dhcp3.inc
@@ -45,7 +45,7 @@ do_install() {
 	install -m 0644 ${WORKDIR}/default-server ${D}${sysconfdir}/default/dhcp-server
 	install -m 0644 ${WORKDIR}/dhclient.conf ${D}${sysconfdir}/dhcp/dhclient.conf
 	install -m 0644 ${WORKDIR}/dhcpd.conf ${D}${sysconfdir}/dhcp/dhcpd.conf
-	install -d ${D}/var/lib/dhcp3
+	install -d ${D}/var/lib/dhcp
 }
 
 PACKAGES += "dhcp-server dhcp-client dhcp-relay dhcp-omshell"
@@ -53,7 +53,7 @@ FILES_${PN} = ""
 FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf"
 FILES_dhcp-relay = "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay ${sysconfdir}/default/dhcp-relay"
 
-FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf /var/lib/dhcp3"
+FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf /var/lib/dhcp"
 
 FILES_dhcp-omshell = "${bindir}/omshell"
 


--
Martyn Welch (Principal Software Engineer)   |   Registered in England and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square, Manchester,
E martyn.welch@ge.com                        |   M2 3AB  VAT:GB 927559189



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-31 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31 13:29 [PATCH] dhcp: Correct leases directory location Martyn Welch
2010-03-31 14:01 ` Steve Sakoman
2010-03-31 15:02   ` Marc Olzheim
2010-03-31 16:36     ` Martyn Welch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox