Web lists-archives.com

Re: processing order for configuration files in /etc/network/interfaces.d




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Aug 26, 2018 at 09:36:30PM +0300, Martin T wrote:
> Hi David,
> 
> > You need to post your evidence, starting with your /etc/network/interfaces
> > file. You say you're using ifup, so we can perhaps discount this paragraph:
> >
> >        Currently, "source-directory" isn't supported by
> >        network-manager and guessnet.
> >
> > but we don't know whether you're using "source-directory" or "source",
> > for example.
> 
> I'm using "source":

Wait a sec... this is not run-parts, then, but the shell builtin 'source'
you are using, like in:

> # cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> source /etc/network/interfaces.d/*
> #

Hm. Interfaces man page refers to wordexp(3), but this one doesn't say
anything about sorted results (although it cites glob as cousin which
_by default_ is sorted, although one can switch that off).

That's unfortunate.

> Yes, this is probably a good idea. However, ideally, "man interfaces"
> should state in which order files in /etc/network/interfaces.d/ are
> processed.

Definitely.

Sorry for bringing up "run-parts". That was a red herring.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAluDs9UACgkQBcgs9XrR2kYMbgCfRZRIthRQROzHVnqd3WaV4HmZ
MG8An03Oe3OZZm1hJaRgiNBmfPpky4qj
=JATa
-----END PGP SIGNATURE-----