From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SPJ0q-0004rO-6h for garchives@archives.gentoo.org; Tue, 01 May 2012 19:45:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31D1CE0B28; Tue, 1 May 2012 19:44:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 01811E0B27 for ; Tue, 1 May 2012 19:44:35 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D32E1B402F for ; Tue, 1 May 2012 19:44:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 09ECEE5430 for ; Tue, 1 May 2012 19:44:33 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1335301350.51ad5c92ab0ccfe18023d6ba1287fe330f1862e6.robbat2@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 51ad5c92ab0ccfe18023d6ba1287fe330f1862e6 X-VCS-Branch: master Date: Tue, 1 May 2012 19:44:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3f419923-6d8a-4042-9b89-44c02a0cbd60 X-Archives-Hash: 7a8f58a33d4ac24e7ec37c2dc5b7d185 commit: 51ad5c92ab0ccfe18023d6ba1287fe330f1862e6 Author: Richard Yao cs stonybrook edu> AuthorDate: Tue Apr 24 07:23:53 2012 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Apr 24 21:02:30 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/genkernel.git= ;a=3Dcommit;h=3D51ad5c92 Serialize hotplug events to mimic udev --- defaults/initrd.scripts | 7 ------- defaults/linuxrc | 11 ++++++++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 5d523ab..4aad686 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -404,13 +404,6 @@ prompt_user(){ esac } =20 -setup_hotplug() { - if [ "${KV_2_6_OR_GREATER}" ] - then - echo /sbin/mdev > /proc/sys/kernel/hotplug - fi -} - setup_slowusb() { # This function removes unset DO_slowusb if there is no usb-storage att= ached. # If noslowusb is set, skip this function diff --git a/defaults/linuxrc b/defaults/linuxrc index 23ec2b0..f6c0de5 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -277,13 +277,18 @@ mount_devfs # Mount sysfs mount_sysfs =20 -# Setup hotplugging for firmware loading -setup_hotplug - # Start mdev if [ "${KV_2_6_OR_GREATER}" ] then good_msg 'Activating mdev' + + # Serialize hotplug events + touch /dev/mdev.seq + + # Setup hotplugging for firmware loading + echo /sbin/mdev > /proc/sys/kernel/hotplug + + # Setup mdev netlink socket daemon ( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates fr= om mdev" fi =20