mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
systemd: sed installed file instead of original
When we change the ROOT_HOME the sed regex does not match if we are running the do_install() a second time, so copy the units files first to a pre_sed, so that the next time, we can copy the the original so that the sed regex is matched correctly in the original [YOCTO #5765] (From OE-Core rev: 8a60d490755c2c3010a87f2616008aee2c9cc966) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
49cdb68e3b
commit
d2f5f2b0b1
@@ -89,6 +89,11 @@ EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
|
|||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
|
export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
|
||||||
export KMOD="${base_bindir}/kmod"
|
export KMOD="${base_bindir}/kmod"
|
||||||
|
if [ -d ${S}/units.pre_sed ] ; then
|
||||||
|
cp -r ${S}/units.pre_sed ${S}/units
|
||||||
|
else
|
||||||
|
cp -r ${S}/units ${S}/units.pre_sed
|
||||||
|
fi
|
||||||
sed -i -e 's:=/root:=${ROOT_HOME}:g' ${S}/units/*.service*
|
sed -i -e 's:=/root:=${ROOT_HOME}:g' ${S}/units/*.service*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user