diff --git a/meta-stx-flock/stx-utilities/stx-extensions.bb b/meta-stx-flock/stx-utilities/stx-extensions.bb index a3faf14..ade8f38 100644 --- a/meta-stx-flock/stx-utilities/stx-extensions.bb +++ b/meta-stx-flock/stx-utilities/stx-extensions.bb @@ -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