stx-extensions: Fix the systemd unitdir and arguments for kernel.core_pattern
Fix the systemd unitdir and the arguments for kernel.core_pattern, or it fails with: - [14487.239126] Core dump to |/usr/lib/systemd/systemd-coredump 1038359 0 0 11 1593333694 mtcAgent pipe failed. - [ 2573.933792] systemd-coredump[250065]: Not enough arguments passed by the kernel (6, expected 7). Story: 2008204 Task: 40988 Change-Id: Iacf40b445a9842a542203b898cff8a4c179b87c8 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
parent
a9ec123aa9
commit
98ad802a09
@ -18,6 +18,11 @@ do_install() {
|
||||
install -p -d -m0755 ${D}/${sysconfdir}/sysctl.d
|
||||
install -m0755 coredump-sysctl.conf ${D}/${sysconfdir}/sysctl.d/50-coredump.conf
|
||||
|
||||
# Fix the systemd unitdir and the arguments for kernel.core_pattern
|
||||
sed -i -e 's|${nonarch_libdir}/systemd|${systemd_unitdir}|' \
|
||||
-e 's/%p/%P/' -e 's/%e/%c %h %e/' \
|
||||
${D}/${sysconfdir}/sysctl.d/50-coredump.conf
|
||||
|
||||
install -p -d -m0755 ${D}/${sysconfdir}/systemd/coredump.conf.d
|
||||
install -m0755 coredump.conf ${D}/${sysconfdir}/systemd/coredump.conf.d/coredump.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user