]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
systemd: Add legacy tmpfile for autocreate /run/lock directory.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Jan 2013 21:09:27 +0000 (22:09 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Jan 2013 21:09:27 +0000 (22:09 +0100)
A lot of services use this directory to put temporary files into it.

Fixes #10291.

systemd/systemd.nm

index 0bf417a24532d84ef93683692f49f5e380fa4a3e..d93414bc3f712bf8d3398cb8817e1ba89c9886ce 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = systemd
 version    = 196
-release    = 2
+release    = 3
 
 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
 groups     = System/Base
@@ -117,6 +117,9 @@ build
                        -e "s/^#ForwardToSyslog=.*$/ForwardToSyslog=no/" \
                        -e "s/^#ImportKernel=.*$/ImportKernel=yes/" \
                        -i %{BUILDROOT}/etc/systemd/journald.conf
+
+               # Install legacy tmpfile to autocreate /run/lock on startup.
+               install -v -m 644 %{DIR_APP}/tmpfiles.d/legacy.conf %{BUILDROOT}%{prefix}/lib/tmpfiles.d/
        end
 end