resolvconf: specify configuration for systemd-tmpfiles --update

Submitted by Jonathan Liu on Sept. 5, 2013, 5:24 a.m.


Message ID
State Accepted
Commit 24f9280c35001ff6c1d5a263fab41ae21a8056f3
Headers show

Commit Message

Jonathan Liu Sept. 5, 2013, 5:24 a.m.
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 <>
 meta/recipes-connectivity/resolvconf/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/resolvconf/ b/meta/recipes-connectivity/resolvconf/
index eb1ce8d..5897e40 100644
--- a/meta/recipes-connectivity/resolvconf/
+++ b/meta/recipes-connectivity/resolvconf/
@@ -45,7 +45,7 @@  do_install () {
 pkg_postinst_${PN} () {
 	if [ -z "$D" ]; then
 		if command -v systemd-tmpfiles >/dev/null; then
-			systemd-tmpfiles --create
+			systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/resolvconf.conf
 		elif [ -e ${sysconfdir}/init.d/ ]; then
 			${sysconfdir}/init.d/ update