From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D273713825A for ; Mon, 16 May 2016 06:55:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A448141E9; Mon, 16 May 2016 06:55:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6340314088 for ; Mon, 16 May 2016 06:55:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56EB0340D04 for ; Mon, 16 May 2016 06:55:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4E99972 for ; Mon, 16 May 2016 06:55:43 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1463381604.5276cd77b5ac4e6f2442bb84573559545f7ad4a2.robbat2@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts X-VCS-Directories: defaults/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 5276cd77b5ac4e6f2442bb84573559545f7ad4a2 X-VCS-Branch: master Date: Mon, 16 May 2016 06:55:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2884d45b-a4df-419f-84b5-a82a13005c34 X-Archives-Hash: 4add561d68cbb14922b126db75a4766d commit: 5276cd77b5ac4e6f2442bb84573559545f7ad4a2 Author: Robin H. Johnson gentoo org> AuthorDate: Mon May 16 06:53:24 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon May 16 06:53:24 2016 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=5276cd77 defaults/initrd.scripts: bug #519742, fix multipath detection. Signed-off-by: Robin H. Johnson gentoo.org> defaults/initrd.scripts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 890893e..1395690 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -977,6 +977,12 @@ startVolumes() { if [ "$fail" = "0" ] then good_msg "Scanning for multipath devices" + good_msg ":: Populating scsi_id info for libudev queries" + mkdir -p /run/udev/data + for ech in /sys/block/* ; do + local tgtfile=b$(cat ${ech}/dev) + /lib/udev/scsi_id -g -x /dev/${ech##*/} |sed -e 's/^/E:/' >/run/udev/data/${tgtfile} + done $multipath_path -v 0 sleep 2 good_msg "Activating multipath devices"