Bug #5504
closed/etc/hosts and /etc/syslog.conf are being overwritten by the base pkg, breaking their symlinks
100%
Description
/etc/hosts is being overwritten by the base pkg, which breaks hosts setup by DNS forwarder/resolver since it expects a symlink to /var/etc/hosts
Similar story for /etc/syslog.conf which should be a link to /var/etc/syslog.conf
If you reboot again post upgrade /etc/rc will fix them both and make them links again, but we should probably exclude them from the base package.
Updated by Renato Botelho about 9 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset 8248f5e4dd7f6745d7feb3092bbc1655ef71af34.
Updated by Jim Thompson about 9 years ago
Even though this is in 'Feedback', we should probably figure out how to get rid of the symlinks from /etc/hosts -> /var/etc/hosts, /etc/syslog.conf -> /var/etc/syslog.conf, etc.
Consider this a 2.4 TODO.
Updated by Jim Pingle about 9 years ago
I seem to recall the reason for hosts being a symlink is because it gets updated frequently by processes like the DHCP host registration, so it's fairly volatile and on NanoBSD it would be impractical to switch that often.
The syslog.conf file should be static enough to eliminate the symlink fairly easily though.
The original problem as described on this ticket is fixed, I haven't had any issues with it since the fix went in. Should we keep this open or close it and move that other task to a new TODO for 2.4?
Updated by Chris Buechler about 9 years ago
- Status changed from Feedback to Resolved
- Affected Architecture added
- Affected Architecture deleted (
amd64)
this is fixed, opened todo #5538 for removal in 2.4.