dhcpcd: install dhcpcd to /sbin rather than /usr/sbin

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.

(From OE-Core rev: ed7cdf95f1dcb3df6e954551f9578a8ac15f2795)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yi Zhao
2020-11-06 10:54:26 +08:00
committed by Richard Purdie
parent 29a911b5ff
commit 10dc1748bd
3 changed files with 4 additions and 3 deletions

View 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 \

View 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

View 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