Web lists-archives.com

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




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

On Mon, Aug 27, 2018 at 09:08:19AM -0400, Greg Wooledge wrote:
> On Mon, Aug 27, 2018 at 10:18:29AM +0200, tomas@xxxxxxxxxx wrote:
> > On Sun, Aug 26, 2018 at 09:36:30PM +0300, Martin T wrote:
> > > I'm using "source":
> > 
> > Wait a sec... this is not run-parts, then, but the shell builtin 'source'
> > you are using, like in:
> > 
> > > source /etc/network/interfaces.d/*
> 
> It's not a shell's builtin "source" [...]

Er... yes, you are right. That's a config item which is implemented
by wordexp(3), if we believe the interfaces man page. The above is
just leftovers from a post which I corrected (incompletely) after
I found out exactly this. Grmpf.

Note to self: always re-read a third time.

[...]

> In the absence of such information, the best thing to conclude is that
> the order is unspecified.  It may be using the raw unsorted directory
> contents from readdir(3), or it may be starting them all in parallel
> threads, in which case the order will be nondeterministic.

Agreed, although this seems somewhat unfortunate.

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

iEYEARECAAYFAluD+3EACgkQBcgs9XrR2kZp4wCeMY7EMt74Q8N5VdzUERSg6Cwp
hiIAn1q5rEwqiINkspih37t730qPqkVL
=20hc
-----END PGP SIGNATURE-----