diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-12-01 14:58:29 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-12-01 15:09:45 -0500 |
commit | 511de3842159b3f3d74489e7f4acfbdb5b083971 (patch) | |
tree | 1a7fe3055d60adfe6584112f269795f302ed6239 /sys-fs/udev | |
parent | sys-libs/liburing: EAPI-8 bump (diff) | |
download | gentoo-511de3842159b3f3d74489e7f4acfbdb5b083971.tar.gz gentoo-511de3842159b3f3d74489e7f4acfbdb5b083971.tar.bz2 gentoo-511de3842159b3f3d74489e7f4acfbdb5b083971.zip |
sys-fs/udev: rename 80-net-name-slot.rules when migrating from eudev
Closes: https://bugs.gentoo.org/827937
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs/udev')
-rw-r--r-- | sys-fs/udev/udev-249.6-r1.ebuild | 6 | ||||
-rw-r--r-- | sys-fs/udev/udev-249.6.ebuild | 6 | ||||
-rw-r--r-- | sys-fs/udev/udev-9999.ebuild | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/sys-fs/udev/udev-249.6-r1.ebuild b/sys-fs/udev/udev-249.6-r1.ebuild index cc70f84d4598..aa9f2ad8efe6 100644 --- a/sys-fs/udev/udev-249.6-r1.ebuild +++ b/sys-fs/udev/udev-249.6-r1.ebuild @@ -299,5 +299,11 @@ pkg_postinst() { ewarn ewarn "If you wish to disable this, please see the above documentation, or set" ewarn "net.ifnames=0 on the kernel command line." + if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then + ewarn + ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'" + ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'" + mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules + fi fi } diff --git a/sys-fs/udev/udev-249.6.ebuild b/sys-fs/udev/udev-249.6.ebuild index 99e87d5ebe55..d3c2c55adb2b 100644 --- a/sys-fs/udev/udev-249.6.ebuild +++ b/sys-fs/udev/udev-249.6.ebuild @@ -292,5 +292,11 @@ pkg_postinst() { ewarn ewarn "If you wish to disable this, please see the above documentation, or set" ewarn "net.ifnames=0 on the kernel command line." + if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then + ewarn + ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'" + ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'" + mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules + fi fi } diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild index 3b56e4e1f8ea..66f6958287d3 100644 --- a/sys-fs/udev/udev-9999.ebuild +++ b/sys-fs/udev/udev-9999.ebuild @@ -299,5 +299,11 @@ pkg_postinst() { ewarn ewarn "If you wish to disable this, please see the above documentation, or set" ewarn "net.ifnames=0 on the kernel command line." + if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then + ewarn + ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'" + ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'" + mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules + fi fi } |