On Fri, Jun 21, 2024 at 11:43:14PM +0100, Jo MacMahon wrote: > I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which > is in the base system, to its original version, and assumed I could get it > out of one of the file sets, most likely `base75.tgz`. However the file is > not present in base75.tgz and none of the other sets look like they ought to > have it in.
Within the source tree, the unbound.conf file lives in /etc. So, for example, if you browse cvsweb or unpack the source archives, you'll find it there. For the binary install packages, this file is moved [1] to the location you are familiar with, /var/unbound/etc/, and it's actually contained in the base set. The reason you didn't easily find it is because it's within the file /var/sysmerge/etc.tgz which is itself part of the base set. > I noticed the same with `/etc/ssh/sshd_config`. This file is also in /var/sysmerge/etc.tgz. [1] See /usr/src/etc/Makefile for the code that does this.