nostromo: specify configuration for systemd-tmpfiles --update
authorJonathan Liu <net147@gmail.com>
Thu, 5 Sep 2013 05:30:16 +0000 (05:30 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:32:50 +0000 (08:32 -0800)
Running systemd-tmpfiles --update without specifying a configuration
file results in all tmpfiles.d configuration files being processed.

/usr/lib/tmpfiles.d/systemd.conf creates /run/nologin on boot to
prevent non-root users from logging in while the system is booting.
If systemd-tmpfiles --update is run after the system has started,
it will still create /run/nologin which would prevent non-root users
from logging in with the message "System is booting up.".

(From meta-openembedded rev: 4dc8ba955ff88505ca2fc5ad27889fa3870db417)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb

index 3aaa5c2..fe860ec 100644 (file)
@@ -61,7 +61,7 @@ CONFFILES_${PN} += "/var/nostromo/conf/mimes ${sysconfdir}/nhttpd.conf"
 pkg_postinst_${PN} () {
     if [ -z "$D" ]; then
         if [ -e /sys/fs/cgroup/systemd ]; then
-            systemd-tmpfiles --create
+            systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/nostromo.conf
         elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
             ${sysconfdir}/init.d/populate-volatile.sh update
         fi