diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2008-12-03 15:31:11 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2008-12-03 15:31:11 +0000 |
commit | c804f016cc9b6c38ab0088c6cbd3b5bd449b0b5d (patch) | |
tree | 656e018acab699a6eda61baf9c1055ecb65db4c4 | |
parent | Stable for HPPA (bug #249332). (diff) | |
download | historical-c804f016cc9b6c38ab0088c6cbd3b5bd449b0b5d.tar.gz historical-c804f016cc9b6c38ab0088c6cbd3b5bd449b0b5d.tar.bz2 historical-c804f016cc9b6c38ab0088c6cbd3b5bd449b0b5d.zip |
Fix capi device nodes, Bug #249389. Do this by applying upstream patch to the common capi rules and install these. Remove capi from gentoo-specific rules.
Package-Manager: portage-2.1.6_rc2/cvs/Linux 2.6.27-gentoo-r1 i686
-rw-r--r-- | sys-fs/udev/ChangeLog | 11 | ||||
-rw-r--r-- | sys-fs/udev/Manifest | 11 | ||||
-rw-r--r-- | sys-fs/udev/files/udev-135-fix-capi.diff | 29 | ||||
-rw-r--r-- | sys-fs/udev/files/udev-135-rules-update.diff | 14 | ||||
-rw-r--r-- | sys-fs/udev/udev-135-r1.ebuild | 438 |
5 files changed, 498 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 3747615b1c44..64a240936f34 100644 --- a/sys-fs/udev/ChangeLog +++ b/sys-fs/udev/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-fs/udev # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.424 2008/12/02 12:58:38 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.425 2008/12/03 15:31:11 zzam Exp $ + +*udev-135-r1 (03 Dec 2008) + + 03 Dec 2008; Matthias Schwarzott <zzam@gentoo.org> + +files/udev-135-fix-capi.diff, +files/udev-135-rules-update.diff, + +udev-135-r1.ebuild: + Fix capi device nodes, Bug #249389. Do this by applying upstream patch to + the common capi rules and install these. Remove capi from gentoo-specific + rules. *udev-135 (02 Dec 2008) diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index 36dc15fed22b..23dc33d6cf94 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -19,6 +19,8 @@ AUX udev-125-cdrom-autoclose-bug.diff 1369 RMD160 52eb8c8dd8160431bc533e921490ef AUX udev-125-rules-update.diff 577 RMD160 13aad3db2819980996f2b36267b1b4b4fe48e943 SHA1 862386a818aed8dc283caef1cea0bd6567634531 SHA256 223b6d5196e24cc608e45ff9a589cfadac2944e1d89b32c80fdf101f381ce6c6 AUX udev-133-rules-update.diff 2310 RMD160 92359598dfe12f83a8fbeccef910fb7f14af1470 SHA1 d9eba00002ca66297b861cf4c13539f069a295d7 SHA256 f377673736e59ba4b026489bff8e37b710c4fe11dbed7d8bb0ae323141327126 AUX udev-133-silence-physdev-warnings.diff 1441 RMD160 261062f671d8a070c6ca0f5a656ca74303e1a178 SHA1 f90ee4a4cb71213b9f7abf69a1d848adb6cec7ac SHA256 8397e6b91433f2de7ce786275b5450a0c3a0384178e46c508e80c8e97cd22dc5 +AUX udev-135-fix-capi.diff 1168 RMD160 9283d71d645b2049bcfebe265be8a6289e003fca SHA1 09aa1fed193ccfd174144d2c36cb5becd7f78c62 SHA256 34ad67c749bf4f076bb8fb1f894197a545f7a4c4a7fa977b9198d34cf249a698 +AUX udev-135-rules-update.diff 491 RMD160 175c31cc04287059b88abe4eff41b548c0780894 SHA1 d3365b058964046f47bfce60d1d18a63832cb9a8 SHA256 f6718f689cb3fe256f859d9280164cb6bfeed9452ffc5447c488f397fb4ea9a7 AUX udev-postmount-130-r2.initd 541 RMD160 88bcdfee21d301385d1a6ef59303825042efd335 SHA1 b89322e2c5a24492593ee8165d042b7039214adf SHA256 00dc2047e16505a89c38571ea50c4ba453ffdee4b9aebe81ca41572f9d62e30e AUX udev-postmount-initd-111-r2 508 RMD160 e1f42197fe3003ec4691b768a921029ce085becb SHA1 7ceb08150d429bd6b5cef88d76847575c6e89f22 SHA256 607deb133ab4be0d2fcb16346e86b3d8ae00bd62d2cbc1329458f278a1b1ff5c AUX udev-start-113-r2.sh 6515 RMD160 2ecaa37fd9e498e60f8cd5978cb4f7930594cf99 SHA1 670bb1845ed70442fe598a5580101be75e2402c9 SHA256 438bc31605c8d2e50bebedd7fbff1410845738372ab3bc03d6f5ed1427ddd046 @@ -54,13 +56,14 @@ EBUILD udev-124-r1.ebuild 10653 RMD160 9d784405a7d3c9e12e9d94fe0ed44d4e72b2deae EBUILD udev-125-r2.ebuild 10651 RMD160 29da75ff13c83b7f6d2872f83c74a49b2651d489 SHA1 f653d53b1b2639ee29a6d97a687624e437dbd9c7 SHA256 6803e25e130cffaa85080ce362d6dbd5722b57d46e1aa07b7586b691ada65e5a EBUILD udev-130-r1.ebuild 9463 RMD160 2c8b5dfb1e7b782ea1bd7e7b43d41f3ba3caadb5 SHA1 f91d861c714d944002e0609efe13a2b78bdaa99a SHA256 2669c6f1cff7c8acc5b43cf0a0720df76c8b6a914c30ba6aacba257b96210dfe EBUILD udev-133.ebuild 12181 RMD160 9c69661fddeb4100b46aaa0dfc1d979e12b2ce45 SHA1 435455f10652935300e4130a0d8e0f79d35e873f SHA256 6b69fd2ca2dd17583618665fb46e3aac4569806d8f16f54366cbe52e64f335ba +EBUILD udev-135-r1.ebuild 12198 RMD160 09f49ca30c37fcedcdb94f483267149291203d2b SHA1 936e5b1043d8642d90e2fb1ad8a768424e23f4b4 SHA256 3fc98af01b313a3cbc73a30e1888712eae4c85a7fb03f80d984017bf240b456d EBUILD udev-135.ebuild 12079 RMD160 88554ff3379d6d74c0537a0848b71e346e5a6108 SHA1 1d2375e4eb0516e4015b534ac4ecb848e8ed5df9 SHA256 8cd73c178e60d06862bbe99f02e86cf0d517edcad6faa5dd0ffe57863355bdb9 -MISC ChangeLog 86953 RMD160 bd2e5c365d0225ff30f5d187d178736c2b58ad6e SHA1 05d78116c7f0bfb3765aeba5ebd3be76cb80c837 SHA256 ab721aa27128f45396c353aa2b1f69c0b1c9e814be7d443c1b2e43d387709cd9 +MISC ChangeLog 87287 RMD160 9412fe4e244a9dad211edd49d7b72616b6f9fda2 SHA1 190cd6dc7fcc22ddffab77425b4f02955087f259 SHA256 15c86e8534771d56f3210b04337418f33184f62e561cb592adf42f1e467c8942 MISC metadata.xml 225 RMD160 9459d2b2027607874431067a9100c48a0a128ffa SHA1 d9fad1caa18dd065595932b9e5d6c18098f3dfad SHA256 dd3c55c5a5c97678030df2554192894d849cdd4845d6fec1c8259d7bf263cd46 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkk1MQQACgkQt2vP6XvVdOfMRwCeI18dnoDZo1KGpvVdXIGtrNfG -ZJ8Anjk1GmqDj+mx7Dye60h2wmjo+R0G -=2E5y +iEYEARECAAYFAkk2pkUACgkQt2vP6XvVdOcHKACcDLylI6vbHv0KsRmJxexYubTh +05cAoL8Qt+FWiPdccdoOCU1m5mOEcIoS +=dIw8 -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/files/udev-135-fix-capi.diff b/sys-fs/udev/files/udev-135-fix-capi.diff new file mode 100644 index 000000000000..ec5bc29bb84c --- /dev/null +++ b/sys-fs/udev/files/udev-135-fix-capi.diff @@ -0,0 +1,29 @@ +commit 1ac8fad8e56097cf8e08a0a17f044309317cb50f +Author: Kay Sievers <kay.sievers@vrfy.org> +Date: Wed Dec 3 01:32:00 2008 +0100 + + rules: fix isdn rules + + On Tue, Dec 2, 2008 at 21:07, Matthias Schwarzott <zzam@gentoo.org> wrote: + > It seems that the rules related to capi devices are not correct: + > + > KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" + > KERNEL=="capi*", NAME="capi/%n" + > + > Changing the second rule to match only on KERNEL=="capi[0-9]*" is reported to + > make it work. + > So I can only guess that the problem is the second rule overwriting the NAME + > set by the first one. + +diff --git a/rules/packages/40-isdn.rules b/rules/packages/40-isdn.rules +index f2bc34e..8a4686f 100644 +--- a/rules/packages/40-isdn.rules ++++ b/rules/packages/40-isdn.rules +@@ -1,5 +1,4 @@ + # do not edit this file, it will be overwritten on update + +-SUBSYSTEM=="capi", GROUP="uucp" +-KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" +-KERNEL=="capi*", NAME="capi/%n" ++SUBSYSTEM=="capi", KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20", GROUP="uucp" ++SUBSYSTEM=="tty", KERNEL=="capi[0-9]*", NAME="capi/%n" diff --git a/sys-fs/udev/files/udev-135-rules-update.diff b/sys-fs/udev/files/udev-135-rules-update.diff new file mode 100644 index 000000000000..b28d26a29b7c --- /dev/null +++ b/sys-fs/udev/files/udev-135-rules-update.diff @@ -0,0 +1,14 @@ +Index: udev-git/rules/gentoo/40-gentoo.rules +=================================================================== +--- udev-git.orig/rules/gentoo/40-gentoo.rules ++++ udev-git/rules/gentoo/40-gentoo.rules +@@ -1,9 +1,5 @@ + # do not edit this file, it will be overwritten on update + +-# capi devices +-KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" +-KERNEL=="capi*", NAME="capi/%n" +- + # old devfs path, removing this could break systems + # Bug 195839 + KERNEL=="md[0-9]*", SYMLINK+="md/%n" diff --git a/sys-fs/udev/udev-135-r1.ebuild b/sys-fs/udev/udev-135-r1.ebuild new file mode 100644 index 000000000000..eb23c38989ea --- /dev/null +++ b/sys-fs/udev/udev-135-r1.ebuild @@ -0,0 +1,438 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-135-r1.ebuild,v 1.1 2008/12/03 15:31:11 zzam Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator + +DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" +SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="selinux" + +DEPEND="selinux? ( sys-libs/libselinux )" +RDEPEND="!sys-apps/coldplug + !<sys-fs/device-mapper-1.02.19-r1" +RDEPEND="${DEPEND} ${RDEPEND} + >=sys-apps/baselayout-1.12.5" +# We need the lib/rcscripts/addon support +PROVIDE="virtual/dev-manager" + +pkg_setup() { + udev_helper_dir="/$(get_libdir)/udev" + + # comparing kernel version without linux-info.eclass to not pull + # virtual/linux-sources + + local KV=$(uname -r) + local KV_MAJOR=$(get_major_version ${KV}) + local KV_MINOR=$(get_version_component_range 2 ${KV}) + local KV_MICRO=$(get_version_component_range 3 ${KV}) + + local min_micro=15 min_micro_reliable=19 + + local ok=0 + if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 ]] + then + if [[ ${KV_MICRO} -ge ${min_micro_reliable} ]]; then + ok=2 + elif [[ ${KV_MICRO} -ge ${min_micro} ]]; then + ok=1 + fi + fi + + if [[ ${ok} -lt 1 ]] + then + ewarn + ewarn "${P} does not support Linux kernel before version 2.6.${min_micro}!" + fi + if [[ ${ok} -lt 2 ]]; then + ewarn "If you want to use udev reliable you should update" + ewarn "to at least kernel version 2.6.${min_micro_reliable}!" + ewarn + ebeep + fi +} + +sed_helper_dir() { + sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@" +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + # patches go here... + epatch "${FILESDIR}/${P}-fix-capi.diff" + epatch "${FILESDIR}/${P}-rules-update.diff" + + # Make sure there is no sudden changes to upstream rules file + # (more for my own needs than anything else ...) + MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules") + MD5=${MD5/ -/} + if [[ ${MD5} != 1425ecb365439f74b9aa2242f0503f1e ]] + then + echo + eerror "50-udev-default.rules has been updated, please validate!" + die "50-udev-default.rules has been updated, please validate!" + fi + + sed_helper_dir \ + rules/rules.d/50-udev-default.rules \ + extras/rule_generator/write_*_rules \ + udev/udev-util.c \ + udev/udev-rules.c \ + udev/udevd.c || die "sed failed" +} + +src_compile() { + filter-flags -fprefetch-loop-arrays + + econf \ + --prefix=/usr \ + --sysconfdir=/etc \ + --exec-prefix= \ + --with-libdir-name=$(get_libdir) \ + --enable-logging \ + $(use_with selinux) + + emake || die "compiling udev failed" +} + +src_install() { + into / + emake DESTDIR="${D}" install || die "make install failed" + if [[ "$(get_libdir)" != "lib" ]]; then + # we can not just rename /lib to /lib64, because + # make install creates /lib64 and /lib + mkdir -p "${D}/$(get_libdir)" + mv "${D}"/lib/* "${D}/$(get_libdir)/" + rmdir "${D}"/lib + fi + + exeinto "${udev_helper_dir}" + newexe "${FILESDIR}"/net-130-r1.sh net.sh || die "net.sh not installed properly" + newexe "${FILESDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \ + || die "move_tmp_persistent_rules.sh not installed properly" + newexe "${FILESDIR}"/write_root_link_rule-125 write_root_link_rule \ + || die "write_root_link_rule not installed properly" + newexe "${FILESDIR}"/shell-compat-118-r3.sh shell-compat.sh \ + || die "shell-compat.sh not installed properly" + + keepdir "${udev_helper_dir}"/state + keepdir "${udev_helper_dir}"/devices + + # create symlinks for these utilities to /sbin + # where multipath-tools expect them to be (Bug #168588) + dosym "..${udev_helper_dir}/vol_id" /sbin/vol_id + dosym "..${udev_helper_dir}/scsi_id" /sbin/scsi_id + + # Add gentoo stuff to udev.conf + echo "# If you need to change mount-options, do it in /etc/fstab" \ + >> "${D}"/etc/udev/udev.conf + + # let the dir exist at least + keepdir /etc/udev/rules.d + + # Now installing rules + cd "${S}"/rules + insinto "${udev_helper_dir}"/rules.d/ + + # Our rules files + doins gentoo/??-*.rules + doins packages/40-alsa.rules + doins packages/40-isdn.rules + + # Adding arch specific rules + if [[ -f packages/40-${ARCH}.rules ]] + then + doins "packages/40-${ARCH}.rules" + fi + cd "${S}" + + # our udev hooks into the rc system + insinto /$(get_libdir)/rcscripts/addons + newins "${FILESDIR}"/udev-start-133.sh udev-start.sh + newins "${FILESDIR}"/udev-stop-126.sh udev-stop.sh + + # The udev-post init-script + newinitd "${FILESDIR}"/udev-postmount-130-r2.initd udev-postmount + + # init-script for >=openrc-0.3.1, Bug #240984 + newinitd "${FILESDIR}/udev.initd" udev + + # config file for init-script and start-addon + newconfd "${FILESDIR}/udev.confd" udev + + insinto /etc/modprobe.d + newins "${FILESDIR}"/blacklist-110 blacklist + doins "${FILESDIR}"/pnp-aliases + + # convert /lib/udev to real used dir + sed_helper_dir \ + "${D}/$(get_libdir)"/rcscripts/addons/*.sh \ + "${D}"/etc/init.d/udev* \ + "${D}"/etc/modprobe.d/* + + # documentation + dodoc ChangeLog README TODO || die "failed installing docs" + + cd docs/writing_udev_rules + mv index.html writing_udev_rules.html + dohtml *.html + + cd "${S}" + + newdoc extras/volume_id/README README_volume_id + + echo "CONFIG_PROTECT_MASK=\"/etc/udev/rules.d\"" > 20udev + doenvd 20udev +} + +pkg_preinst() { + if [[ -d ${ROOT}/lib/udev-state ]] + then + mv -f "${ROOT}"/lib/udev-state/* "${D}"/lib/udev/state/ + rm -r "${ROOT}"/lib/udev-state + fi + + if [[ -f ${ROOT}/etc/udev/udev.config && + ! -f ${ROOT}/etc/udev/udev.rules ]] + then + mv -f "${ROOT}"/etc/udev/udev.config "${ROOT}"/etc/udev/udev.rules + fi + + # delete the old udev.hotplug symlink if it is present + if [[ -h ${ROOT}/etc/hotplug.d/default/udev.hotplug ]] + then + rm -f "${ROOT}"/etc/hotplug.d/default/udev.hotplug + fi + + # delete the old wait_for_sysfs.hotplug symlink if it is present + if [[ -h ${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]] + then + rm -f "${ROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug + fi + + # delete the old wait_for_sysfs.hotplug symlink if it is present + if [[ -h ${ROOT}/etc/hotplug.d/default/10-udev.hotplug ]] + then + rm -f "${ROOT}"/etc/hotplug.d/default/10-udev.hotplug + fi + + # is there a stale coldplug initscript? (CONFIG_PROTECT leaves it behind) + coldplug_stale="" + if [[ -f ${ROOT}/etc/init.d/coldplug ]] + then + coldplug_stale="1" + fi + + has_version "=${CATEGORY}/${PN}-103-r3" + previous_equal_to_103_r3=$? + + has_version "<${CATEGORY}/${PN}-104-r5" + previous_less_than_104_r5=$? + + has_version "<${CATEGORY}/${PN}-106-r5" + previous_less_than_106_r5=$? + + has_version "<${CATEGORY}/${PN}-113" + previous_less_than_113=$? + + has_version "<${CATEGORY}/${PN}-133" + previous_less_than_133=$? +} + +# enable udev init-script, else system will no longer boot +# after update to openrc-0.3.1, Bug #240984 +enable_udev_init_script() { + local result=msg + + if [[ -e "${ROOT}"/etc/runlevels/sysinit/udev ]] + then + # already enabled + result=enabled + elif has_version ">=sys-apps/openrc-0.3.1" + then + # openrc without addon calls - no idea what to do, so just print msg + result=msg + else + local rc_devices= + if has_version "sys-apps/openrc"; then + # openrc with udev addon calls + rc_devices=$(source ${ROOT}/etc/rc.conf; echo $rc_devices) + [[ -z "$rc_devices" ]] && rc_devices=auto + else + # old baselayout + rc_devices=$(source ${ROOT}/etc/conf.d/rc; echo $RC_DEVICES) + fi + + case ${rc_devices} in + auto|udev) result=add ;; + esac + fi + + case "$result" in + enabled) + einfo "udev init-script is already enabled, nothing to do." + ;; + add) + # enable udev init-script for new openrc + elog "Auto adding udev init script to the sysinit runlevel" + mkdir -p "${ROOT}"/etc/runlevels/sysinit + ln -sf /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit + ;; + msg) + ewarn + ewarn "You need to add the udev init script to the runlevel sysinit," + ewarn "else your system will not be able to boot" + ewarn "after updating to >=openrc-0.3.1" + ewarn "Run this to enable udev for >=openrc-0.3.1:" + ewarn "\trc-update add udev sysinit" + ewarn + ;; + esac +} + +fix_old_persistent_net_rules() { + local rules=${ROOT}/etc/udev/rules.d/70-persistent-net.rules + [[ -f ${rules} ]] || return + + elog + elog "Updating persistent-net rules file" + + # Change ATTRS to ATTR matches, Bug #246927 + sed -i -e 's/ATTRS{/ATTR{/g' "${rules}" + + # Add KERNEL matches if missing, Bug #246849 + sed -ri \ + -e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \ + "${rules}" +} + +# See Bug #129204 for a discussion about restarting udevd +restart_udevd() { + # need to merge to our system + [[ ${ROOT} = / ]] || return + + # check if root of init-process is identical to ours (not in chroot) + [[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] || return + + # abort if there is no udevd running + [[ -n $(pidof udevd) ]] || return + + # abort if no /dev/.udev exists + [[ -e /dev/.udev ]] || return + + elog + elog "restarting udevd now." + + killall -15 udevd &>/dev/null + sleep 1 + killall -9 udevd &>/dev/null + + /sbin/udevd --daemon +} + +pkg_postinst() { + fix_old_persistent_net_rules + + restart_udevd + + if [[ $previous_less_than_133 = 0 ]] + then + enable_udev_init_script + fi + + # people want reminders, I'll give them reminders. Odds are they will + # just ignore them anyway... + + if [[ ${coldplug_stale} == 1 ]] + then + ewarn "A stale coldplug init script found. You should run:" + ewarn + ewarn " rc-update del coldplug" + ewarn " rm -f /etc/init.d/coldplug" + ewarn + ewarn "udev now provides its own coldplug functionality." + fi + + # delete 40-scsi-hotplug.rules - all integrated in 50-udev.rules + if [[ $previous_equal_to_103_r3 = 0 ]] && + [[ -e ${ROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]] + then + ewarn "Deleting stray 40-scsi-hotplug.rules" + ewarn "installed by sys-fs/udev-103-r3" + rm -f "${ROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules + fi + + # Removing some device-nodes we thought we need some time ago + if [[ -d ${ROOT}/lib/udev/devices ]] + then + rm -f "${ROOT}"/lib/udev/devices/{null,zero,console,urandom} + fi + + # Removing some old file + if [[ $previous_less_than_104_r5 = 0 ]] + then + rm -f "${ROOT}"/etc/dev.d/net/hotplug.dev + rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/net 2>/dev/null + fi + + if [[ $previous_less_than_106_r5 = 0 ]] && + [[ -e ${ROOT}/etc/udev/rules.d/95-net.rules ]] + then + rm -f "${ROOT}"/etc/udev/rules.d/95-net.rules + fi + + # Try to remove /etc/dev.d as that is obsolete + if [[ -d ${ROOT}/etc/dev.d ]] + then + rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/default "${ROOT}"/etc/dev.d 2>/dev/null + if [[ -d ${ROOT}/etc/dev.d ]] + then + ewarn "You still have the directory /etc/dev.d on your system." + ewarn "This is no longer used by udev and can be removed." + fi + fi + + # 64-device-mapper.rules now gets installed by sys-fs/device-mapper + # remove it if user don't has sys-fs/device-mapper installed + if [[ $previous_less_than_113 = 0 ]] && + [[ -f ${ROOT}/etc/udev/rules.d/64-device-mapper.rules ]] && + ! has_version sys-fs/device-mapper + then + rm -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules + einfo "Removed unneeded file 64-device-mapper.rules" + fi + + # requested in Bug #225033: + elog + elog "persistent-net does assigning fixed names to network devices." + elog "If you have problems with the persistent-net rules," + elog "just delete the rules file" + elog "\trm ${ROOT}etc/udev/rules.d/70-persistent-net.rules" + elog "and then reboot." + elog + elog "This may however number your devices in a different way than they are now." + + ewarn + ewarn "If you build an initramfs including udev, then please" + ewarn "make sure that the /sbin/udevadm binary gets included," + ewarn "and your scripts changed to use it,as it replaces the" + ewarn "old helper apps udevinfo, udevtrigger, ..." + + ewarn + ewarn "mount options for directory /dev are no longer" + ewarn "set in /etc/udev/udev.conf, but in /etc/fstab" + ewarn "as for other directories." + + elog + elog "For more information on udev on Gentoo, writing udev rules, and" + elog " fixing known issues visit:" + elog " http://www.gentoo.org/doc/en/udev-guide.xml" +} |