Skip to content

Commit

Permalink
defaults/initrd.scripts: bug #519742, fix multipath detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Sep 6, 2016
1 parent 46180ea commit 90eb585
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/initrd.d/00-fsdev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90eb585

Please sign in to comment.