Skip to contentSkip to conversation

resolvconf: specify configuration for systemd-tmpfiles --update

PATCH New Jonathan Liu 1 participant 1 message Sep 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 resolvconf: 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.".

---
 meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb +1 -1
index eb1ce8d..5897e40 100644
@@ -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/populate-volatile.sh ]; then
 			${sysconfdir}/init.d/populate-volatile.sh update
 		fi
Signature · 1 line
1.8.4