meson: make net.naming-scheme= default configurable

This is useful for distributions, where the stability of interface names should
be preseved after an upgrade of systemd. So when some specific release of the
distro is made available, systemd defaults to the latest & greatest naming
scheme, and subsequent updates set the same default. This default may still
be overriden through the kernel and env var options.

A special value "latest" is also allowed. Without a specific name, it is harder
to verride from meson. In case of 'combo' options, meson reads the default
during the initial configuration, and "remembers" this choice. When systemd is
updated, old build/ directories could keep the old default, which would be
annoying. Hence, "latest" is introduced to make it explicit, yet follow the
upstream. This is actually useful for the user too, because it may be used
as an override, without having to actually specify a version.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-12-11 23:28:29 +01:00
committed by Lennart Poettering
parent f7e81fd96f
commit 06da5c63dd
5 changed files with 51 additions and 32 deletions

View File

@@ -92,13 +92,14 @@ systemd-logind:
for it.
* `$NET_NAMING_SCHEME=` if set, takes a network naming scheme (i.e. one of
v238, v239, v240 …) as parameter. If specified udev's net_id builtin will
follow the specified naming scheme when determining stable network interface
names. This may be used to revert to naming schemes of older udev versions,
in order to provide more stable naming across updates. This environment
variable takes precedence over the kernel command line option
`net.naming-scheme=`, except if the value is prefixed with `:` in which case
the kernel command line option takes precedence, if it is specified as well.
"v238", "v239", "v240"…, or the special value "latest") as parameter. If
specified udev's net_id builtin will follow the specified naming scheme when
determining stable network interface names. This may be used to revert to
naming schemes of older udev versions, in order to provide more stable naming
across updates. This environment variable takes precedence over the kernel
command line option `net.naming-scheme=`, except if the value is prefixed
with `:` in which case the kernel command line option takes precedence, if it
is specified as well.
installed systemd tests: