meson: make net.naming-scheme= default configurable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Dec 2018 22:28:29 +0000 (23:28 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 18 Nov 2020 08:15:19 +0000 (09:15 +0100)
commit8c263758fe196624005f19bd6f46d63e3841c5be
tree502446d2ef0db13a63809508c0af1e0cf45b14d9
parent08ac9f7f55c138678c6415139e7510a05a75b81d
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.

(cherry picked from commit 06da5c63dd697ea4087e76c6d809b60b5780b87c)

Related: #1827462

[msekleta: note that our default is not latest but rhel-8.0]
doc/ENVIRONMENT.md
man/systemd-udevd.service.xml
meson.build
meson_options.txt
src/udev/udev-builtin-net_id.c