summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-06 20:21:53 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-06 20:21:53 +0100
commit96e0294f0892d355cf6f632b9848c06a2cd2578d (patch)
tree431d87258cf5ea9170d06785748aa47a6cb64c84
parentInline systemd.m4 (diff)
downloadgentoo-systemd-integration-96e0294f0892d355cf6f632b9848c06a2cd2578d.tar.gz
gentoo-systemd-integration-96e0294f0892d355cf6f632b9848c06a2cd2578d.tar.bz2
gentoo-systemd-integration-96e0294f0892d355cf6f632b9848c06a2cd2578d.zip
Add env gen to inject full Gentoo PATH to services
Bug: https://bugs.gentoo.org/651904 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--Makefile.am5
-rw-r--r--system-environment-generators/10-gentoo-path3
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 4482c77..0d4c179 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,6 +13,11 @@ dist_systemdsystempreset_DATA = \
dist_systemdsystemgenerator_SCRIPTS = \
system-generators/gentoo-local-generator
+# note: this needs to go into /usr, not /
+systemdsystemenvironmentgeneratordir = $(prefix)/lib/systemd/system-environment-generators
+dist_systemdsystemenvironmentgenerator_SCRIPTS = \
+ system-environment-generators/10-gentoo-path
+
udevrulesdir = $(udevdir)/rules.d
dist_udevrules_DATA = udev/40-gentoo.rules
diff --git a/system-environment-generators/10-gentoo-path b/system-environment-generators/10-gentoo-path
new file mode 100644
index 0000000..4976fb4
--- /dev/null
+++ b/system-environment-generators/10-gentoo-path
@@ -0,0 +1,3 @@
+#!/bin/sh
+. /etc/profile.env
+echo "PATH=${PATH}"