stx-extensions: fix the files permission

Fix the files permission to avoid the following warning:

- [ 1722.252634] systemd-coredump[190171]: Configuration file
  /etc/systemd/coredump.conf.d/coredump.conf is marked executable
  Please remove executable permission bits. Proceeding anyway.

Story: 2008204
Task: 40988

Change-Id: I97d4ac6a9e1b6919dafda89f21c92bdff73c4925
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-10-10 22:55:54 +08:00
parent 98ad802a09
commit 95aa2b4341

View File

@ -15,18 +15,18 @@ do_compile[noexec] = "1"
do_install() {
install -p -d -m0755 ${D}/${sysconfdir}/sysctl.d
install -m0755 coredump-sysctl.conf ${D}/${sysconfdir}/sysctl.d/50-coredump.conf
install -p -d -m 0755 ${D}/${sysconfdir}/sysctl.d
install -m 0644 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
install -p -d -m 0755 ${D}/${sysconfdir}/systemd/coredump.conf.d
install -m 0644 coredump.conf ${D}/${sysconfdir}/systemd/coredump.conf.d/coredump.conf
install -p -d -m0755 ${D}/${sysconfdir}/modules-load.d
install -m0644 modules-load-vfio.conf ${D}/${sysconfdir}/modules-load.d/vfio.conf
install -p -d -m 0755 ${D}/${sysconfdir}/modules-load.d
install -m 0644 modules-load-vfio.conf ${D}/${sysconfdir}/modules-load.d/vfio.conf
}