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.77) (envelope-from ) id 1Ss1Fx-0000OD-LS for garchives@archives.gentoo.org; Fri, 20 Jul 2012 00:39:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AA64E0077; Fri, 20 Jul 2012 00:39:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F1ED6E0077 for ; Fri, 20 Jul 2012 00:39:29 +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 60C101B40B8 for ; Fri, 20 Jul 2012 00:39:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A235EE5434 for ; Fri, 20 Jul 2012 00:39:26 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1342744625.f68ad83c7f385f17c9bc6325037bca649a89c107.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: f68ad83c7f385f17c9bc6325037bca649a89c107 X-VCS-Branch: master Date: Fri, 20 Jul 2012 00:39:26 +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: e699b2e4-ce1a-4cae-8f96-109a5b8004f7 X-Archives-Hash: dab7066eaffdf7d3a7b8ceb4aa75d0b4 commit: f68ad83c7f385f17c9bc6325037bca649a89c107 Author: Richard Yao cs stonybrook edu> AuthorDate: Fri Jul 20 00:34:07 2012 +0000 Commit: Richard Yao gentoo org> CommitDate: Fri Jul 20 00:37:05 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/genkernel.git= ;a=3Dcommit;h=3Df68ad83c Run mdev -s after modules are loaded Running `mdev -s` will ensure that device nodes are properly initialized. It does not function as a netlink hotplug daemon. We must run it after the modules are loaded to ensure that so that /dev/zfs has been created before userland programs attempt to use it. --- defaults/linuxrc | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 90099c8..f434339 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -293,7 +293,7 @@ mount_devfs # Mount sysfs mount_sysfs =20 -# Start mdev +# Initialize mdev if [ "${KV_2_6_OR_GREATER}" ] then good_msg 'Activating mdev' @@ -303,9 +303,6 @@ then =20 # 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 # Load modules listed in MY_HWOPTS if /lib/modules exists for the runnin= g kernel @@ -329,6 +326,12 @@ else good_msg 'Skipping module load; no modules in the ramdisk!' fi =20 +# Ensure that device nodes are properly configured +if [ "${KV_2_6_OR_GREATER}" ] +then + mdev -s || bad_msg "mdev -s failed" +fi + # Apply scan delay if specified sdelay =20