Package: resolvconf
Version: 1.80
Tags: patch

The create_runtime_directories() function in the resolvconf init script worked under assumption that $RUN_DIR is a symlink (either broken or pointing to a directory). Now that $RUN_DIR is just /run/resolvconf, resolvconf no longer starts on boot:

  Setting up resolvconf...failed (/run/resolvconf is neither a directory nor a 
symbolic link).


-- System Information:
Architecture: i386

Versions of packages resolvconf depends on:
ii  lsb-base     11.1.0
ii  debconf      1.5.73

--
Jakub Wilk
--- /etc/init.d/resolvconf	2019-12-10 16:45:20.000000000 +0100
+++ /etc/init.d/resolvconf	2019-12-11 20:30:41.564651091 +0100
@@ -54,11 +54,8 @@
 {
 	umask 022
 	if [ ! -d "$RUN_DIR" ] ; then
-		[ -L "$RUN_DIR" ] || log_action_end_msg_and_exit 1 "$RUN_DIR is neither a directory nor a symbolic link"
-		# It's a symlink. Its target is not a dir.
-		{ RUN_CANONICALDIR="$(readlink -f "$RUN_DIR")" && [ "$RUN_CANONICALDIR" ] ; } || log_action_end_msg_and_exit 1 "Canonical path of the run directory could not be determined"
 		# Create directory at the target
-		mkdir "$RUN_CANONICALDIR" || log_action_end_msg_and_exit 1 "Error creating directory $RUN_CANONICALDIR"
+		mkdir "$RUN_DIR" || log_action_end_msg_and_exit 1 "Error creating directory $RUN_DIR"
 	fi
 	# The resolvconf run directory now exists.
 	if [ ! -d "${RUN_DIR}/interface" ] ; then

Reply via email to