Skip to contentSkip to conversation

procps: install symlink under /etc/sysctl.d in case of systemd

PATCH In review Chen Qi 2 participants 3 messages Nov 9, 2014 – Nov 11, 2014

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover procps: install symlink under /etc/sysctl.d in case of systemd

The following changes since commit d7a277b35bcc67050046c76fb70412101679a545:

docbook-xsl-stylesheets: add perl to RDEPENDS (2014-11-04 10:20:34 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib ChenQi/procps-sysctl.d
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/procps-sysctl.d

Chen Qi (1):
procps: install symlink under /etc/sysctl.d in case of systemd

 meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 procps: install symlink under /etc/sysctl.d in case of systemd

Install /etc/sysctl.d/99-sysctl.conf symlink in case of systemd so that /etc/sysctl.conf is taken into consideration by systemd-sysctl.

---
 meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-extended/procps/procps_3.2.8.bb +4 -0
index 6211a7c..fcfde19 100644
@@ -28,6 +28,10 @@ EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}" \
 do_install_append () {
 	install -d ${D}${sysconfdir}
 	install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf
+	if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+		install -d ${D}${sysconfdir}/sysctl.d
+		ln -sf ../sysctl.conf ${D}${sysconfdir}/sysctl.d/99-sysctl.conf
+	fi
 }
 
 CONFFILES_${PN} = "${sysconfdir}/sysctl.conf"
Signature · 1 line
1.9.1
#2 lore raw
Quoted 7 lines

Op 9 nov. 2014, om 08:03 heeft Chen Qi <[email protected]> het volgende geschreven:

Install /etc/sysctl.d/99-sysctl.conf symlink in case of systemd so that /etc/sysctl.conf is taken into consideration by systemd-sysctl.

Look good to me.