[oe] [meta-oe][PATCH v3] minicoredumper: relocate admin-binaries to sbin
Christophe PRIOUZEAU
christophe.priouzeau at st.com
Thu May 17 08:23:40 UTC 2018
Change path of minicoredumper on init/service script to /usr/sbin.
Since the commit "relocate admin-binaries to sbin" on minicoredumper,
minicoredumper binaries are installed on /usr/sbin directory instead
of /usr/bin.
src/minicoredumper/Makefile.am: sbin_PROGRAMS = minicoredumper
Signed-off-by: Christophe Priouzeau <christophe.priouzeau at st.com>
---
meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb
index 1858e10..0d3c66b 100644
--- a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb
+++ b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb
@@ -38,4 +38,8 @@ do_install_append() {
install -m 0644 ${WORKDIR}/minicoredumper.service ${D}${systemd_system_unitdir}
install -d ${D}${sysconfdir}/init.d
install -m 0644 ${WORKDIR}/minicoredumper.init ${D}${sysconfdir}/init.d/minicoredumper
+
+ # correct path of minicoredumper
+ sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${sysconfdir}/init.d/minicoredumper
+ sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${systemd_system_unitdir}/minicoredumper.service
}
--
2.7.4
More information about the Openembedded-devel
mailing list