Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/
Date: Wed, 27 Feb 2013 21:23:23
Message-Id: 1361992130.5dd65894052cd6f4d9aebd67c93e61c3259e7303.WilliamH@gentoo
1 commit: 5dd65894052cd6f4d9aebd67c93e61c3259e7303
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 26 04:16:00 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 27 19:08:50 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=5dd65894
7
8 udev: skip "udevadm trigger" calls if coldplug sequence is not requested
9
10 Reported-by: matthew4196 <AT> gmail.com
11 X-Gentoo-Bug: 424189
12 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=424189
13
14 ---
15 init.d/udev | 13 +++++--------
16 1 files changed, 5 insertions(+), 8 deletions(-)
17
18 diff --git a/init.d/udev b/init.d/udev
19 index af0a40e..f2e1e48 100644
20 --- a/init.d/udev
21 +++ b/init.d/udev
22 @@ -100,23 +100,20 @@ start_udevmonitor()
23
24 populate_dev()
25 {
26 - if get_bootparam "nocoldplug" ; then
27 - rc_coldplug="NO"
28 - ewarn "Skipping udev coldplug as requested in kernel cmdline"
29 + get_bootparam "nocoldplug" && rc_coldplug="no"
30 + if ! yesno $rc_coldplug; then
31 + ewarn "Skipping udev coldplug sequence"
32 + return 0
33 fi
34
35 ebegin "Populating /dev with existing devices through uevents"
36 - if ! yesno "${rc_coldplug}"; then
37 - # Do not run any init-scripts, Bug #206518
38 - udevadm control --property=do_not_run_plug_service=1
39 - fi
40 udevadm trigger --type=subsystems --action=add
41 udevadm trigger --type=devices --action=add
42 eend $?
43 +
44 ebegin "Waiting for uevents to be processed"
45 udevadm settle --timeout=${udev_settle_timeout}
46 eend $?
47 - udevadm control --property=do_not_run_plug_service=
48 return 0
49 }