mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user