From: Jackie Huang Date: Thu, 2 Jul 2020 14:47:46 +0000 (+0800) Subject: stx-extensions: fix the files permission X-Git-Tag: cherry~22 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=633ce2f854915b41bd372a634de3a8cdcd311f9e;hp=bf241c5aa539f6bda109897812887e7db1b0ae8b;p=pti%2Frtp.git 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. Issue-ID: INF-181 Signed-off-by: Jackie Huang Change-Id: I29e61033bd7d4d6469d3e38c3efaaa4b05222ecc --- diff --git a/meta-stx/recipes-core/stx-utilities/utilities/stx-extensions.inc b/meta-stx/recipes-core/stx-utilities/utilities/stx-extensions.inc index 6b3c99a..5e80821 100644 --- a/meta-stx/recipes-core/stx-utilities/utilities/stx-extensions.inc +++ b/meta-stx/recipes-core/stx-utilities/utilities/stx-extensions.inc @@ -31,19 +31,19 @@ do_compile_append() { do_install_append() { cd ${S}/utilities/stx-extensions/files - 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 }