From 90eb5850696c3dfde2ae6c7366b39f5d0831565a Mon Sep 17 00:00:00 2001 From: mudler Date: Tue, 6 Sep 2016 11:28:19 +0200 Subject: [PATCH] defaults/initrd.scripts: bug #519742, fix multipath detection. Ported from genkernel: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=5276cd77b5ac4e6f2442bb84573559545f7ad4a2 --- defaults/initrd.d/00-fsdev.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/defaults/initrd.d/00-fsdev.sh b/defaults/initrd.d/00-fsdev.sh index bbdae08f..57a00730 100755 --- a/defaults/initrd.d/00-fsdev.sh +++ b/defaults/initrd.d/00-fsdev.sh @@ -171,6 +171,12 @@ start_volumes() { if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; 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 -v 0 is_udev && udevadm settle