On Nov 13 02:48:46, [email protected] wrote:
> My actual use case is parsimony with files.

Do you have too many files?

> I have a Makefile system to set up siteXY.tgz and siteXY-host.tgz,
> where XY is the version of OpenBSD (for example, 78).
> 
> I have several different architectures. Some have the re ethernet interfaces.
> Some have the igc ethernet interfaces. Some have the vr ethernet interfaces.
> 
> Several of those interfaces are all set up the same way (if they exist).
> So I am loading (at install time) hostname.if files for all of my 
> architectures,
> even though those interfaces don't exist on every machine.

It is a bit questionable to automatize something like network
configuration, which, by definition, will differ for different machines.
That being said, many machines (of mine) just need an "inet autoconf"
for their (only) iface.

So I do this to, on my USB key amd64 installation that I use
to test varioius HW under OpenBSD: hardlink "every" /etc/hostname.if
to one and the same file (that just says "inet autoconf); and when
I meet a machine that has an interface I didn't meet before,
I just ln that same file under another name.

> This prevents me from having separate files for each hostname,
> for interfaces that are always configured the same.

Bonus: hardlinks are not separate files.

        Jan

Reply via email to