diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-05-15 23:53:24 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-05-15 23:53:24 -0700 |
commit | 5276cd77b5ac4e6f2442bb84573559545f7ad4a2 (patch) | |
tree | 59db65de86abb02074695e38c7b492bc34234c68 | |
parent | gen_cmdline: bug #544172: sanity check on mdadm/dmraid. (diff) | |
download | genkernel-5276cd77b5ac4e6f2442bb84573559545f7ad4a2.tar.gz genkernel-5276cd77b5ac4e6f2442bb84573559545f7ad4a2.tar.bz2 genkernel-5276cd77b5ac4e6f2442bb84573559545f7ad4a2.zip |
defaults/initrd.scripts: bug #519742, fix multipath detection.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | defaults/initrd.scripts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 890893ec..1395690c 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" |