[oe-commits] Jonathan Liu : nostromo: specify configuration for systemd-tmpfiles --update

git at git.openembedded.org git at git.openembedded.org
Tue Sep 10 20:30:13 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: 4dc8ba955ff88505ca2fc5ad27889fa3870db417
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4dc8ba955ff88505ca2fc5ad27889fa3870db417

Author: Jonathan Liu <net147 at gmail.com>
Date:   Thu Sep  5 05:30:16 2013 +0000

nostromo: specify configuration for systemd-tmpfiles --update

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.".

Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-httpd/nostromo/nostromo_1.9.5.bb       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb b/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb
index 3aaa5c2..fe860ec 100644
--- a/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb
+++ b/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb
@@ -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



More information about the Openembedded-commits mailing list