Restart systemd-resolved after writing the config file, as systemd-resolved does not appear to watch the config directories for updates as one would expect.
New changelog entries:
[ Russell Coker ]
* Set correct SE Linux context on created directories and files
(Closes: #850783).
[ Jakub Wilk ]
* Drop symlink resolving logic from the init script (Closes: #946609).
# dnssec-trigger sets the immutability attribute. Override it.
46
63
# See #776778 for background.
47
64
chattr -i /etc/resolv.conf
48
65
else
49
66
# Respect the admin
50
67
report_err "Cannot replace the current /etc/resolv.conf with a symbolic link because it is immutable; to correct this problem, gain root privileges in a terminal and run 'chattr -i /etc/resolv.conf' and then 'dpkg --configure resolvconf'; aborting"
# we are "done" and nothing that looks at this file should ever
58
75
# think otherwise
59
76
:> /var/lib/resolvconf/linkified
60
58
fi
77
fi
61
59
78
62
60
# Link tail to original if appropriate
79
# Link tail to original if appropriate
63
@@ -67,55 +86,6 @@ case "$1" in
64
67
fi
86
fi
65
68
fi
87
fi
66
69
88
67
70
# Linkify /etc/resolv.conf if appropriate
68
71
if [ ! -e /var/lib/resolvconf/linkified ] ; then
69
72
db_get resolvconf/linkify-resolvconf
70
73
if [ "$RET" = "true" ] ; then
71
74
if is_immutable_file /etc/resolv.conf ; then
72
75
if dnssec_trigger_is_installed ; then
73
76
# dnssec-trigger sets the immutability attribute. Override it.
74
77
# See #776778 for background.
75
78
chattr -i /etc/resolv.conf
76
79
else
77
80
# Respect the admin
78
81
report_err "Cannot replace the current /etc/resolv.conf with a symbolic link because it is immutable; to correct this problem, gain root privileges in a terminal and run 'chattr -i /etc/resolv.conf' and then 'dpkg --configure resolvconf'; aborting"
Code review good.
Proceeding to test build and interractively test.