]> code.ossystems Code Review - openembedded-core.git/commitdiff
dhcpcd: install dhcpcd to /sbin rather than /usr/sbin
authorYi Zhao <yi.zhao@windriver.com>
Fri, 6 Nov 2020 02:54:26 +0000 (10:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 8 Nov 2020 14:03:16 +0000 (14:03 +0000)
The dhcpcd path is hardcoded to /sbin in ifupdown package. Move dhcpcd
from /usr/sbin to /sbin to make sure ifup/ifdown can find it when dhcpcd
as the dhcp client backend.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/dhcpcd/dhcpcd_9.3.1.bb
meta/recipes-connectivity/dhcpcd/files/dhcpcd.service
meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service

index e520115f711208e566739784c46b5d7d54936ed1..c572868c7e614a45c50c23710bdb8b82509a0ced 100644 (file)
@@ -34,6 +34,7 @@ PACKAGECONFIG[ypbind] = "--with-eghook=yp, , ,ypbind-mt"
 
 EXTRA_OECONF = "--enable-ipv4 \
                 --dbdir=${localstatedir}/lib/${BPN} \
+                --sbindir=${base_sbindir} \
                 --runstatedir=/run \
                 --enable-privsep \
                 --privsepuser=dhcpcd \
index bbed6d85c49eb84b46e8a0b6847d663711c23cdc..6c967ddaf026795a97b90abb96cfe5e6ca03a4b2 100644 (file)
@@ -5,7 +5,7 @@ Before=network.target
 Conflicts=connman.service
 
 [Service]
-ExecStart=/usr/sbin/dhcpcd -q --nobackground
+ExecStart=/sbin/dhcpcd -q --nobackground
 
 [Install]
 WantedBy=multi-user.target
index 389b076c382388fe46a36cd9729d15cf6acc807d..845b83b9e5c171c034310a7ab675e02e1014819c 100644 (file)
@@ -9,8 +9,8 @@ Conflicts=connman.service
 [Service]
 Type=forking
 PIDFile=/run/dhcpcd/%I.pid
-ExecStart=/usr/sbin/dhcpcd -q %I
-ExecStop=/usr/sbin/dhcpcd -x %I
+ExecStart=/sbin/dhcpcd -q %I
+ExecStop=/sbin/dhcpcd -x %I
 
 [Install]
 WantedBy=multi-user.target