diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-11-13 22:40:48 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-11-13 22:40:48 +0000 |
commit | 07b4e73cf9072b1a470f6906857c40e8ad02aef5 (patch) | |
tree | 348fe7c04d76d61148d6f9655167e06c6f9e8fa3 /sys-fs | |
parent | Version bump to test a fix for bug #198083. (diff) | |
download | historical-07b4e73cf9072b1a470f6906857c40e8ad02aef5.tar.gz historical-07b4e73cf9072b1a470f6906857c40e8ad02aef5.tar.bz2 historical-07b4e73cf9072b1a470f6906857c40e8ad02aef5.zip |
Version bumped. Now all helper-apps are merged into binary udevadm. This needs to be included when building initramfs'. Using udevadm for providing /dev/root link. Added special warning for Bug #190994. No longer install udevstart, it is not needed for 2.6.15 and newer and just confuses people.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/ChangeLog | 11 | ||||
-rw-r--r-- | sys-fs/udev/Manifest | 26 | ||||
-rw-r--r-- | sys-fs/udev/files/digest-udev-117 | 3 | ||||
-rwxr-xr-x | sys-fs/udev/files/write_root_link_rule | 29 | ||||
-rw-r--r-- | sys-fs/udev/udev-117.ebuild | 337 |
5 files changed, 398 insertions, 8 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 17d2d1b862a3..8a73967a5271 100644 --- a/sys-fs/udev/ChangeLog +++ b/sys-fs/udev/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-fs/udev # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.365 2007/11/10 10:23:17 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.366 2007/11/13 22:40:48 zzam Exp $ + +*udev-117 (13 Nov 2007) + + 13 Nov 2007; Matthias Schwarzott <zzam@gentoo.org> + +files/write_root_link_rule, +udev-117.ebuild: + Version bumped. Now all helper-apps are merged into binary udevadm. This + needs to be included when building initramfs'. Using udevadm for providing + /dev/root link. Added special warning for Bug #190994. No longer install + udevstart, it is not needed for 2.6.15 and newer and just confuses people. 10 Nov 2007; Matthias Schwarzott <zzam@gentoo.org> udev-104-r12.ebuild, udev-104-r13.ebuild, udev-111.ebuild, udev-111-r1.ebuild, diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index bf8a32c6d1b0..29f27f74aaba 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -213,6 +213,10 @@ AUX udev.rules-104-r10 10849 RMD160 c68dbf53b1594dabb1dcc378c062122928f60369 SHA MD5 402db784651a5e391213680c8ac396fc files/udev.rules-104-r10 10849 RMD160 c68dbf53b1594dabb1dcc378c062122928f60369 files/udev.rules-104-r10 10849 SHA256 50a345d2065afeeb6d453c99596066a4054a00552896ea98ed067f128bb075b4 files/udev.rules-104-r10 10849 +AUX write_root_link_rule 1064 RMD160 dae5cc41dc790d34a5d29320fa47411dd45547be SHA1 80e4d5de4b6a08ca263bc55981f2ff8065673eb4 SHA256 3c5b198b0aaf92f88e419f4d11f6e7c5da010d25ccc391b5f4aa600e33825a78 +MD5 a171c9b2e1595384d9c64c74e3d028a0 files/write_root_link_rule 1064 +RMD160 dae5cc41dc790d34a5d29320fa47411dd45547be files/write_root_link_rule 1064 +SHA256 3c5b198b0aaf92f88e419f4d11f6e7c5da010d25ccc391b5f4aa600e33825a78 files/write_root_link_rule 1064 DIST udev-104.tar.bz2 187574 RMD160 269aeb9a0b2043d18c274fde749d2e0d30398b73 SHA1 53a8019f2be429be914e0283bfbcb91083fbbd9a SHA256 ec0e7bd0c322dce6149d5f94185aa477659f5030a3d684ff5428124eca684ea1 DIST udev-111.tar.bz2 190020 RMD160 bb3f1c2b1e24092b42507b663eceffe17f8a4a06 SHA1 910e8f31835528ec45cd59ba4a00f88c7f93670e SHA256 ec47cc46b15838321c31589d7bdbdcf553c0ea4f406edc6f239cb20a3732c233 DIST udev-112.tar.bz2 194203 RMD160 1c50bcefc04ea08eb4df5eb0b2a12de2d8ff0228 SHA1 f55270798370eb7f432c8ec0c83627ae57cc6274 SHA256 823fabbef5add28a454f3ab67cd3bcf06a41f45b976590f2fe7ea84d22b5186e @@ -223,6 +227,7 @@ DIST udev-115-update-20070924.diff.bz2 22390 RMD160 3ce46440aba43088d1319ad5eb62 DIST udev-115-update-20079804.diff.bz2 16067 RMD160 0b67eda0135bb41108c6b3c9add2ee339aaa4515 SHA1 0878fd3e173d22afff80bc87b74ba23a3b60a490 SHA256 911071b8a5a61b0b9086ad40cf18140c67e9c58ca8be650e10728bb8c9ec4e08 DIST udev-115.tar.bz2 198893 RMD160 bf72a4e20b9ba50a5b0c3da09f77e67ec819b9fa SHA1 392f5a8d35a231b0edf075827f194ccfd946234f SHA256 e35bb5662d2ad692a24adc5bb1d10b065e4657bcb68f20c8ef98d892bfc8dc93 DIST udev-116.tar.bz2 199112 RMD160 8c084fe4034e007ca66f0c102f41e9ada17bc46a SHA1 d0c2782e7052289f915a61f9f292e70eac01ffd2 SHA256 a28b5dc28e0e6b1e812e5b051205eaf3d9c3d299f8aecf3f915df1b76cb3b8a2 +DIST udev-117.tar.bz2 199961 RMD160 bce663cb6c2bdd449b67122e01c8da106feb7a1f SHA1 7b75e632b631445af863ce8a70557944f5093c58 SHA256 42ffd09f50f6a0e16d832dbe0e8f1b2aa558b8982d1dd767ddb23365f9736dee EBUILD udev-104-r12.ebuild 9575 RMD160 90e22d3b7c14fa689aee6e1fc9a4db3c3c4b1d7c SHA1 b17f7d0e4c3dd7d9d4cba2da8fb264f85d944ed6 SHA256 3cab1b3a2e6f09b8d4f641b6330b895e88eba8ba85ea78c7d650111f01ae6011 MD5 c9eb36bfd79e9dffaf0836c046812f01 udev-104-r12.ebuild 9575 RMD160 90e22d3b7c14fa689aee6e1fc9a4db3c3c4b1d7c udev-104-r12.ebuild 9575 @@ -299,10 +304,14 @@ EBUILD udev-116.ebuild 9509 RMD160 5020c05a401528e434fcfb6b043e0c1180b9677c SHA1 MD5 ba413854459adea3f726e972bd63cb6b udev-116.ebuild 9509 RMD160 5020c05a401528e434fcfb6b043e0c1180b9677c udev-116.ebuild 9509 SHA256 a2936a298ea7fe62f105b0654bcc78dd6c27b43cffcb7674de16fb57f083214c udev-116.ebuild 9509 -MISC ChangeLog 73247 RMD160 75d493e5b77cd9557819c16b3b4d4b0601e173a2 SHA1 0327696bccdd71401c393bf12cecc88dd365376e SHA256 8afd32fa07d65f85ea479dea1041310f7436e26a3e43431ee6503d160ea3bb3b -MD5 055cd69e419b8b471e1cdefbd1b14ef1 ChangeLog 73247 -RMD160 75d493e5b77cd9557819c16b3b4d4b0601e173a2 ChangeLog 73247 -SHA256 8afd32fa07d65f85ea479dea1041310f7436e26a3e43431ee6503d160ea3bb3b ChangeLog 73247 +EBUILD udev-117.ebuild 9482 RMD160 fe6ba1f21b47b036fcade67a3044597bf4fac495 SHA1 f39f626cb1c1302a4981c33af41ffe457eac219c SHA256 eda844e88de47d9a67d8f19bf28e09307ededc9f596fceb3c02bf876bed5aad7 +MD5 859654da0b7e128065a9df6d9712d065 udev-117.ebuild 9482 +RMD160 fe6ba1f21b47b036fcade67a3044597bf4fac495 udev-117.ebuild 9482 +SHA256 eda844e88de47d9a67d8f19bf28e09307ededc9f596fceb3c02bf876bed5aad7 udev-117.ebuild 9482 +MISC ChangeLog 73679 RMD160 0d09a1f6e992c77aa93a0bb5dc9b97381026a508 SHA1 bf21f3fe3d2eaca5d5660bafe213de0264b04519 SHA256 2536b974d87ba8d086967bed16cf1bc1837e5ded9647e9018bde5fdc2b9a427a +MD5 8757f4ec0766bb422de139a6b3a6c982 ChangeLog 73679 +RMD160 0d09a1f6e992c77aa93a0bb5dc9b97381026a508 ChangeLog 73679 +SHA256 2536b974d87ba8d086967bed16cf1bc1837e5ded9647e9018bde5fdc2b9a427a ChangeLog 73679 MISC metadata.xml 447 RMD160 d1ba09bd6a434b25c718673de9258cc544e090be SHA1 70c43d2863c09958849bfce8c5bb97d406a0662b SHA256 a9881de1424ac71191111bd30c7c1253589673b0cdce13c352204f1499e9d884 MD5 f74bee0505505c00e76da6313db29e49 metadata.xml 447 RMD160 d1ba09bd6a434b25c718673de9258cc544e090be metadata.xml 447 @@ -364,10 +373,13 @@ SHA256 4446f4b16a3434e4dd028040a3f17fa387b41d0e366ab01e349414681a5f71cb files/di MD5 328fb812cc39897dbbe3f70ae899c3f2 files/digest-udev-116-r1 229 RMD160 8d51a39a607ee918b92801a1253334886fb71eaa files/digest-udev-116-r1 229 SHA256 4446f4b16a3434e4dd028040a3f17fa387b41d0e366ab01e349414681a5f71cb files/digest-udev-116-r1 229 +MD5 0d7f9aa6ff8986bbeee9acd412b1b86a files/digest-udev-117 229 +RMD160 12947ce08b2fc024fc175060ccab6358213b44b8 files/digest-udev-117 229 +SHA256 0e4bfdc3d2b0af05d9656d9e795b6bf6ad0d3ffc61f6bb700b30b84deb2e4e2a files/digest-udev-117 229 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFHNYaot2vP6XvVdOcRAtP7AKCcvkJU0Cdw2RLr6+jEOuMEhq/KvwCfRWJ0 -abFSzhhIkDg/iaW5vOIxD7A= -=hLPs +iD8DBQFHOif4t2vP6XvVdOcRAm0xAKCh72l0XQ0bf7qY+nfZJVO3ptKCFwCgy6JJ +DLqlK3cY2w+nEgkpLxNWhv4= +=eBp4 -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/files/digest-udev-117 b/sys-fs/udev/files/digest-udev-117 new file mode 100644 index 000000000000..b6e85578a5dd --- /dev/null +++ b/sys-fs/udev/files/digest-udev-117 @@ -0,0 +1,3 @@ +MD5 d3c1a5cdc772fffe70253e07a5f80e17 udev-117.tar.bz2 199961 +RMD160 bce663cb6c2bdd449b67122e01c8da106feb7a1f udev-117.tar.bz2 199961 +SHA256 42ffd09f50f6a0e16d832dbe0e8f1b2aa558b8982d1dd767ddb23365f9736dee udev-117.tar.bz2 199961 diff --git a/sys-fs/udev/files/write_root_link_rule b/sys-fs/udev/files/write_root_link_rule new file mode 100755 index 000000000000..4d6cd78c9d37 --- /dev/null +++ b/sys-fs/udev/files/write_root_link_rule @@ -0,0 +1,29 @@ +#!/bin/sh +# +# This script should run before doing udevtrigger at boot. +# It will create a rule matching the device directory / is on, and +# creating /dev/root symlink pointing on its device node. +# +# This is especially useful for hal looking at /proc/mounts containing +# a line listing /dev/root as device: +# /dev/root / reiserfs rw 0 0 +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation version 2 of the License. +# +# (c) 2007 Matthias Schwarzott <zzam@gentoo.org> + +DEV=$(udevadm info --device-id-of-file=/) +if [ $? = 0 ]; then + MAJOR="${DEV% *}" + MINOR="${DEV#* }" + + [ -d /dev/.udev/rules.d ] || mkdir -p /dev/.udev/rules.d + RULES=/dev/.udev/rules.d/10-root-link.rules + + echo "# Created by /lib/udev/write_root_link_rule" > "${RULES}" + echo "# This rule should create /dev/root as link to real root device." >> "${RULES}" + echo "SUBSYSTEM==\"block\", ENV{MAJOR}==\"$MAJOR\", ENV{MINOR}==\"$MINOR\", SYMLINK+=\"root\"" >> "${RULES}" +fi + diff --git a/sys-fs/udev/udev-117.ebuild b/sys-fs/udev/udev-117.ebuild new file mode 100644 index 000000000000..034ea0b62f32 --- /dev/null +++ b/sys-fs/udev/udev-117.ebuild @@ -0,0 +1,337 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-117.ebuild,v 1.1 2007/11/13 22:40:48 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" + + myconf= + extras="extras/ata_id \ + extras/cdrom_id \ + extras/edd_id \ + extras/firmware \ + extras/floppy \ + extras/path_id \ + extras/scsi_id \ + extras/usb_id \ + extras/volume_id \ + extras/collect \ + extras/rule_generator" + + use selinux && myconf="${myconf} USE_SELINUX=true" + + # 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 ok=0 + if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 && ${KV_MICRO} -ge 15 ]] + then + ok=1 + fi + + if [[ ${ok} == 0 ]] + then + ewarn + ewarn "${P} does not support Linux kernel before version 2.6.15!" + ewarn "If you want to use udev you need to update" + ewarn "to kernel >=2.6.15!" + ewarn + ebeep + fi +} + +sed_helper_dir() { + sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@" +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + # patches go here... + + # No need to clutter the logs ... + sed -ie '/^DEBUG/ c\DEBUG = false' Makefile + # Do not use optimization flags from the package + sed -ie 's|$(OPTIMIZATION)||g' Makefile + # Do not require xmlto to refresh manpages + sed -ie 's|$(MAN_PAGES)||g' Makefile + + # Make sure there is no sudden changes to upstream rules file + # (more for my own needs than anything else ...) + MD5=$(md5sum < "${S}/etc/udev/rules.d/50-udev-default.rules") + MD5=${MD5/ -/} + if [[ ${MD5} != 42ee128b936ebad2e80f011597c869b2 ]] + 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 \ + etc/udev/rules.d/50-udev-default.rules \ + extras/rule_generator/write_*_rules \ + udev_rules_parse.c \ + udev_rules.c + + # Use correct multilib dir + sed -i extras/volume_id/lib/Makefile \ + -e "/ =/s-/lib-/$(get_libdir)-" +} + +src_compile() { + filter-flags -fprefetch-loop-arrays + + if [[ -z ${extras} ]]; then + eerror "Variable extras is unset!" + eerror "It seems you suffer from Bug #190994" + die "Variable extras is unset!" + fi + + # Not everyone has full $CHOST-{ld,ar,etc...} yet + local mycross="" + type -p ${CHOST}-ar && mycross=${CHOST}- + + emake \ + EXTRAS="${extras}" \ + libudevdir=${udev_helper_dir} \ + CROSS_COMPILE=${mycross} \ + OPTFLAGS="" \ + ${myconf} || die "compiling udev failed" +} + +src_install() { + into / + emake \ + DESTDIR="${D}" \ + libudevdir=${udev_helper_dir} \ + EXTRAS="${extras}" \ + ${myconf} \ + install || die "make install failed" + + exeinto "${udev_helper_dir}" + newexe "${FILESDIR}"/net-104-r10.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" + doexe "${FILESDIR}"/write_root_link_rule \ + || die "write_root_link_rule 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 + + # vol_id library (needed by mount and HAL) + into / + rm "${D}/$(get_libdir)"/libvolume_id.so* 2>/dev/null + dolib extras/volume_id/lib/*.so* || die "Failed installing libvolume_id.so" + into /usr + dolib extras/volume_id/lib/*.a || die "Failed installing libvolume_id.a" + + # handle static linking bug #4411 + rm -f "${D}/usr/$(get_libdir)/libvolume_id.so" + gen_usr_ldscript libvolume_id.so + + # Add gentoo stuff to udev.conf + cat "${FILESDIR}"/udev.conf.115-r6 >> "${D}"/etc/udev/udev.conf + + # Now installing rules + cd etc/udev + insinto /etc/udev/rules.d/ + + # Our rules files + doins gentoo/??-*.rules + doins packages/40-alsa.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-115-r6.sh udev-start.sh + newins "${FILESDIR}"/udev-stop-111-r2.sh udev-stop.sh + + # The udev-post init-script + newinitd "${FILESDIR}"/udev-postmount-initd-111-r2 udev-postmount + + 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 FAQ README TODO RELEASE-NOTES + dodoc docs/{overview,udev_vs_devfs} + dodoc docs/writing_udev_rules/* + + 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 +} + +pkg_postinst() { + # 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 has_version "=sys-fs/udev-103-r3" && + [[ -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 has_version "<sys-fs/udev-104-r5" + 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 has_version "<sys-fs/udev-106-r5" && + [[ -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 has_version "<sys-fs/udev-113" && + [[ -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 + + if [[ ${ROOT} == / ]] + then + # check if root of init-process is identical to ours + if [[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] + then + einfo "restarting udevd now." + if [[ -n $(pidof udevd) ]] + then + killall -15 udevd &>/dev/null + sleep 1 + killall -9 udevd &>/dev/null + fi + /sbin/udevd --daemon + fi + fi + + ewarn "If you build an initramfs including udev, then please" + ewarn "make sure that the /sbin/udevadm binary gets included," + ewarn "as the helper apps udevinfo, udevtrigger, ... are now" + ewarn "only symlinks to udevadm." + + einfo + einfo "For more information on udev on Gentoo, writing udev rules, and" + einfo " fixing known issues visit:" + einfo " http://www.gentoo.org/doc/en/udev-guide.xml" +} |