aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe PRIOUZEAU <christophe.priouzeau@st.com>2018-05-17 08:18:28 +0000
committerArmin Kuster <akuster808@gmail.com>2018-06-14 20:13:40 -0700
commit21b35694949f24e3b830a0cff0e1752ab72d0207 (patch)
tree36a63f47ba8e4112da6a8e6201a9636f7286e287
parentae42bbad28e980474f0884f2fc69a13d1136ecd5 (diff)
downloadmeta-openembedded-contrib-21b35694949f24e3b830a0cff0e1752ab72d0207.tar.gz
meta-openembedded-contrib-21b35694949f24e3b830a0cff0e1752ab72d0207.tar.bz2
meta-openembedded-contrib-21b35694949f24e3b830a0cff0e1752ab72d0207.zip
minicoredumper: relocate admin-binaries to sbin
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@st.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d1cfe7a70cddd4026552e615f8027160abb7bf0b) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb4
1 files changed, 4 insertions, 0 deletions
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 1858e102d8..0d3c66b07a 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
}