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
+ # See #776778 for background.
47
+ chattr -i /etc/resolv.conf
48
+ else
49
+ # Respect the admin
50
+ 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
+ # think otherwise
59
+ :> /var/lib/resolvconf/linkified
60
fi
61
62
# Link tail to original if appropriate
63
@@ -67,55 +86,6 @@ case "$1" in
64
fi
65
fi
66
67
- # Linkify /etc/resolv.conf if appropriate
68
- if [ ! -e /var/lib/resolvconf/linkified ] ; then
69
- db_get resolvconf/linkify-resolvconf
70
- if [ "$RET" = "true" ] ; then
71
- if is_immutable_file /etc/resolv.conf ; then
72
- if dnssec_trigger_is_installed ; then
73
- # dnssec-trigger sets the immutability attribute. Override it.
74
- # See #776778 for background.
75
- chattr -i /etc/resolv.conf
76
- else
77
- # Respect the admin
78
- 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.