summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-10-28 21:59:05 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-10-28 21:59:05 +0000
commitff56cb04d28183434644fdcbf3924742a4675e33 (patch)
tree60a14cf7489b9c3e01c99afdac4121151db83f01 /sys-fs
parentMask sys-fs/udev-130-r2 for its new init-script to be used with not-yet commi... (diff)
downloadhistorical-ff56cb04d28183434644fdcbf3924742a4675e33.tar.gz
historical-ff56cb04d28183434644fdcbf3924742a4675e33.tar.bz2
historical-ff56cb04d28183434644fdcbf3924742a4675e33.zip
Add udev init-script for new, not yet in tree, openrc-versions (>0.3.0), Bug #240984.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo i686
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog10
-rw-r--r--sys-fs/udev/Manifest11
-rwxr-xr-xsys-fs/udev/files/udev-postmount-130-r2.initd25
-rwxr-xr-xsys-fs/udev/files/udev.initd47
-rw-r--r--sys-fs/udev/udev-130-r2.ebuild340
5 files changed, 428 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index b5c3e0409915..094e49343b13 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,14 @@
# 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.412 2008/10/09 08:56:42 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.413 2008/10/28 21:59:05 zzam Exp $
+
+*udev-130-r2 (28 Oct 2008)
+
+ 28 Oct 2008; Matthias Schwarzott <zzam@gentoo.org>
+ +files/udev-postmount-130-r2.initd, +files/udev.initd,
+ +udev-130-r2.ebuild:
+ Add udev init-script for new, not yet in tree, openrc-versions (>0.3.0),
+ Bug #240984.
*udev-130-r1 (09 Oct 2008)
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index f90b83a66494..62df3e05614c 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -19,6 +19,7 @@ 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-127-disable-logging-compile-fix.patch 1959 RMD160 71549b902e42e6b08739700f750a0238c257c579 SHA1 7f9f7132ddb4d7695fc28d701ac096586a919eb2 SHA256 09593d077d47f7aea267ac1cf67022f80bff2f4b8dc046dce69802261a6a53c0
AUX udev-129-fix-without-logging.diff 1089 RMD160 bf830e3253fe6c0334fa7e9aa1452f93bbac9363 SHA1 695c1c76d12a148d2eaed381f18c426d3172d9f7 SHA256 e4ad28791c70e9730c69c078f05416196314c7d80fd50b5d9b84cb17d2587b4c
+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
AUX udev-start-114-r1.sh 6218 RMD160 a7348ac44768096b3da712a9be0ef4bf9af6ec17 SHA1 6dfcb9aed5e066d21bebee03d29137722db19b56 SHA256 a639a6f1093f05da197c3fc548c31f7078b2f0023f66f3caade0721c60819268
@@ -31,6 +32,7 @@ AUX udev-stop-118-r2.sh 2160 RMD160 0c3c40fbe3f931a3a8a41b9bcc98b5d6f6592f45 SHA
AUX udev-stop-126.sh 2164 RMD160 339a3e5aeb9cdb0ad3be26491f7e00f2590ba522 SHA1 2f37fad8d3450238ddb1b411969af8b109e01f34 SHA256 6012cd0816b119606b0a5e49466b4042d9a0cdc6dc328f83067316abcb2a166c
AUX udev.conf.post_113 1084 RMD160 00b356c1be30a03d63bb25516d05eb4688642804 SHA1 4a55d0c0b75673f9863f87717978fcd70219119d SHA256 61ad09df9fbfbe382c7bf3c57eed2b546a324815e8c31bd52e1114b5b8e4eb1b
AUX udev.conf.post_114 405 RMD160 9cb36e1c4fad99ed0d37952d54a6508bc3ad6428 SHA1 c01872ed68d8b0183aa7fb7e6c721e4408557347 SHA256 1d1ea52357d6318c9bc9f4b77e1509d700ef7576eb255e9be9112ea94685e6fb
+AUX udev.initd 1101 RMD160 7464b1b163fe9dd099903789f2c3bb9250532a19 SHA1 513794d35ddd856d8637465de2fba4513a4c6580 SHA256 296501cb5580f5670ca3f19ebf00fffc31aad50c4a3f0653c375d44b66f94838
AUX write_root_link_rule 1064 RMD160 dae5cc41dc790d34a5d29320fa47411dd45547be SHA1 80e4d5de4b6a08ca263bc55981f2ff8065673eb4 SHA256 3c5b198b0aaf92f88e419f4d11f6e7c5da010d25ccc391b5f4aa600e33825a78
AUX write_root_link_rule-125 1086 RMD160 669f994678f306d97c79d585c615f56b026b1fa7 SHA1 309fd5155e8a010616adcb51a0b717887ba05ec3 SHA256 f8cff0e73ef40c6a9f642aba35136eac6e60d4cdfb54027aad59f6b770c01915
DIST udev-114.tar.bz2 198912 RMD160 7f4e4af4a14e62a5260a484f54e2298643081301 SHA1 9e9fed1d6b061a53c6c523798fae8baef893a521 SHA256 d844924f2aa36fffaec1d1a30c0cd1e304224d751c619dce226cce632ad77017
@@ -60,13 +62,14 @@ EBUILD udev-127.ebuild 9563 RMD160 b125e2cbe3c31a430634f95179f6e2ebb0b42d12 SHA1
EBUILD udev-128.ebuild 9541 RMD160 771abec71d08f51b868541e523b2487a3bb8ad41 SHA1 3c0157d16617daa7bffe03593044f56284aa96bd SHA256 943eda65e96c83c2b27b7d4c5610bf3a7f3a6cbfa024f87f6c4eb349c13eb3d2
EBUILD udev-129.ebuild 9593 RMD160 a666dc54e7a0222f38525b9a9019df67996c4401 SHA1 91bdc8f021494988135eadecd11f3f2d4d4a5a6f SHA256 f2248d12ba12f7f22176ea9c7d6632da522ec7353f32dab69fe42ff725843f5b
EBUILD udev-130-r1.ebuild 9544 RMD160 9bb3e52fe62d0f6e87ca6993cfb23823a66f0c9a SHA1 234d67af61d1217d956e150427a1ded1acb46c22 SHA256 3b4f71c6911717532e9c76e089bce20685ab56b0e75bd608e791b067c35e44ca
+EBUILD udev-130-r2.ebuild 9720 RMD160 ceb64d4d62fda93a312aa40c36aa00b4996e15ed SHA1 2beca11b16189870b74e8eb38f5a1bc0dd1fb51b SHA256 fcbaef2c162d60ee6f740f91800869fd7655c07f2e16317a5f21142293cd42b5
EBUILD udev-130.ebuild 9541 RMD160 33bb710bfd02a8e2bd7c89b4f546dd7b4d333a57 SHA1 16319a8238cacdb39964c85ac70909a5035d21c1 SHA256 b10173227a10457b84c718c74ef3840486890d0272fd1ec7332ee326824bf28f
-MISC ChangeLog 84108 RMD160 0b956842ec3a0173119b951e1e1f1265c2b021cb SHA1 a50c061361ff23b5b4b10aae90b583945495e61d SHA256 b58da76ba000d88bff1d459f6598f87cb4975f9b562ba3bd4c8357293e6d80ef
+MISC ChangeLog 84360 RMD160 79775a813c4129fa844f1e0de046ccbba43c6880 SHA1 cc560985e821111de6838ec5a08080129a16d97d SHA256 b70b5034097f9275721eeb21ec87265a721401007a1600e1d7d5c5a6ba3cee84
MISC metadata.xml 225 RMD160 9459d2b2027607874431067a9100c48a0a128ffa SHA1 d9fad1caa18dd065595932b9e5d6c18098f3dfad SHA256 dd3c55c5a5c97678030df2554192894d849cdd4845d6fec1c8259d7bf263cd46
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkkFWXoACgkQ67wieSYcaxeO4gCg4OgpBGFUWb9IRnqXpIMv89Os
-10gAoOgDNHbHnyxUVbkhRQm0zATf3b6q
-=OhTx
+iEYEARECAAYFAkkHizQACgkQt2vP6XvVdOfxhACeLWzqiWKHicgjC2Uoo7eaNHoP
+8fQAnjflPvQASJ9VW1Emtg4xMA03W6C6
+=Dkhb
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/files/udev-postmount-130-r2.initd b/sys-fs/udev/files/udev-postmount-130-r2.initd
new file mode 100755
index 000000000000..a19e11b0a63a
--- /dev/null
+++ b/sys-fs/udev/files/udev-postmount-130-r2.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/udev-postmount-130-r2.initd,v 1.1 2008/10/28 21:59:05 zzam Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ # check if this system uses udev
+ [ -d /dev/.udev/ ] || return 0
+
+ einfo "udev postmount cleanup"
+
+ # store persistent-rules that got created while booting
+ # when / was still read-only
+ /lib/udev/move_tmp_persistent_rules.sh
+}
+
+stop() {
+ :
+}
+
+# vim:ts=4
diff --git a/sys-fs/udev/files/udev.initd b/sys-fs/udev/files/udev.initd
new file mode 100755
index 000000000000..c38592517934
--- /dev/null
+++ b/sys-fs/udev/files/udev.initd
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend()
+{
+ if [ -e /lib/librc.so -a -f /etc/init.d/sysfs ]; then
+ # on baselayout-1 this causes
+ # dependency-cycles with checkroot (before *)
+ # require new enough openrc with sysinit being extra runlevel
+ provide dev
+ need sysfs
+ before checkfs fsck
+ fi
+}
+
+start()
+{
+ if [ ! -e /lib/librc.so ]; then
+ eerror "The $SVCNAME init-script is written for baselayout-2!"
+ eerror "Please do not use it with baselayout-1!".
+ return 1
+ fi
+
+ start_addon udev || return 1
+ local svcfile= svc= services=
+ for svcfile in "${RC_SVCDIR}"/hotplugged/*; do
+ svc="${svcfile##*/}"
+ [ -x "${svcfile}" ] || continue
+
+ # for debug
+ #[ "$svc" = "udev-postmount" ] && einfo "Injected udev-postmount service"
+
+ # do not show this
+ [ "$svc" = "udev-postmount" ] && continue
+
+ services="${services} ${svc}"
+ done
+ [ -n "${services}" ] && einfo "Device initiated services:${HILITE}${services}${NORMAL}"
+ return 0
+}
+
+stop()
+{
+ # this stop-part does not not yet exist
+ stop_addon udev
+}
diff --git a/sys-fs/udev/udev-130-r2.ebuild b/sys-fs/udev/udev-130-r2.ebuild
new file mode 100644
index 000000000000..63615dc7554a
--- /dev/null
+++ b/sys-fs/udev/udev-130-r2.ebuild
@@ -0,0 +1,340 @@
+# 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-130-r2.ebuild,v 1.1 2008/10/28 21:59:05 zzam Exp $
+
+inherit eutils flag-o-matic multilib toolchain-funcs versionator autotools
+
+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 ok=0
+ if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 && ${KV_MICRO} -ge 18 ]]
+ 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 reliable you should update"
+ ewarn "to at least kernel version 2.6.18!"
+ ewarn
+ ebeep
+ fi
+}
+
+sed_helper_dir() {
+ sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ # patches go here...
+
+ # 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} != 6c0547dfba7807da6f2987fd6aa74d4c ]]
+ 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_rules_parse.c \
+ udev/udev_rules.c \
+ $(find -name "Makefile.*")
+
+ # fix version of volume_id lib
+ sed -e 's/-version-info/-version-number/' -i extras/volume_id/lib/Makefile.am
+
+ eautoreconf
+}
+
+src_compile() {
+ filter-flags -fprefetch-loop-arrays
+
+ econf \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --exec-prefix= \
+ --with-libdir-name=$(get_libdir) \
+ --disable-debug \
+ --disable-logging \
+ $(use_with selinux)
+
+ emake || die "compiling udev failed"
+}
+
+src_install() {
+ into /
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ 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
+
+ # 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-126.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.0
+ # TODO: Add message that user REALLY, REALLY
+ # needs to add this to sysinit runlevel
+ # Bug #240984
+ newinitd "${FILESDIR}/udev.initd" 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=$?
+}
+
+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 [[ $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 persistent-net rules,"
+ elog "just delete the rules file"
+ elog "\trm ${ROOT}etc/udev/rules.d/70-persistent-net.rules"
+ elog "and then trigger udev by either running"
+ elog "\tudevadm trigger --subsystem-match=net"
+ elog "or by rebooting."
+ elog
+ elog "This may number your devices in a different way than it is now."
+
+ 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 "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"
+}