commit: 36ef228ff82661f1491b6c7e532df24755992bbc Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Aug 9 16:46:44 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Aug 9 16:47:07 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ef228f
sys-fs/udev: add message when switching from sys-fs/eudev Helpful for the musl users who will end up hitting this as a result of the unmasking of sys-fs/udev on their profiles. Bug: https://bugs.gentoo.org/807193 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-fs/udev/udev-249-r2.ebuild | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys-fs/udev/udev-249-r2.ebuild b/sys-fs/udev/udev-249-r2.ebuild index e6d857dcefb..5dbd7be0b71 100644 --- a/sys-fs/udev/udev-249-r2.ebuild +++ b/sys-fs/udev/udev-249-r2.ebuild @@ -279,6 +279,10 @@ multilib_src_install_all() { einstalldocs } +pkg_preinst() { + has_version 'sys-fs/eudev' && HAD_EUDEV=1 +} + pkg_postinst() { # Update hwdb database in case the format is changed by udev version. if has_version 'sys-apps/hwids[udev]' ; then @@ -287,4 +291,13 @@ pkg_postinst() { # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda [[ -z ${REPLACING_VERSIONS} ]] && udev_reload fi + + if [[ ${HAD_EUDEV} -eq 1 ]] ; then + ewarn + ewarn "${P} defaults to predictable interface renaming, as described in the URL below:" + ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" + ewarn + ewarn "If you wish to disable this, please see the above documentation, or set" + ewarn "net.ifnames=0 on the kernel command line." + fi }
