stx-extensions: fix the files permission 44/4644/1
authorJackie Huang <jackie.huang@windriver.com>
Thu, 2 Jul 2020 14:47:46 +0000 (22:47 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 28 Aug 2020 07:50:53 +0000 (15:50 +0800)
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 <jackie.huang@windriver.com>
Change-Id: I29e61033bd7d4d6469d3e38c3efaaa4b05222ecc

meta-stx/recipes-core/stx-utilities/utilities/stx-extensions.inc

index 6b3c99a..5e80821 100644 (file)
@@ -31,19 +31,19 @@ do_compile_append() {
 do_install_append() {
        cd ${S}/utilities/stx-extensions/files
 
 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
 
 
        # 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
 
 }
 
 
 }