summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-07-12 11:14:54 +0200
committerTom Gundersen <teg@jklm.no>2013-07-12 20:08:31 +0200
commit3d56f7df4411684404470d36ddec0d90649a13a3 (patch)
tree04b2f6415f9a61885ac75c483f516e9c71083d03
parent9f64229f9ca69f5652b238a67531432e56108bd6 (diff)
static-nodes: don't hardcode path to mkdir
-rw-r--r--Makefile.am1
-rw-r--r--units/kmod-static-nodes.service.in2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index f1dfeedf58..2283d05789 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4173,6 +4173,7 @@ substitutions = \
'|DEBUGTTY=$(DEBUGTTY)|' \
'|KILL=$(KILL)|' \
'|KMOD=$(KMOD)|' \
+ '|MKDIR_P=$(MKDIR_P)|' \
'|QUOTAON=$(QUOTAON)|' \
'|QUOTACHECK=$(QUOTACHECK)|' \
'|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
index f8a2d474ef..624a650526 100644
--- a/units/kmod-static-nodes.service.in
+++ b/units/kmod-static-nodes.service.in
@@ -12,5 +12,5 @@ Before=sysinit.target systemd-tmpfiles-setup-dev.service
[Service]
Type=oneshot
-ExecStartPre=/usr/bin/mkdir -p /run/tmpfiles.d
+ExecStartPre=@MKDIR_P@ /run/tmpfiles.d
ExecStart=@KMOD@ static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf