Delay time for boot to detect mpath disks

Give the boot enough time to be able to detect mpath disks.
In some cases boot was taking some time to detect mpath,
generating an error on installation.

Story: 2010046
Task: 45489

Test Plan:

PASS: AIO-DX Executed on lab with mpath

Signed-off-by: Daian Cardoso Sganderlla <Daian.CardosoSganderlla@windriver.com>
Change-Id: I4b79b00ff2e3f4db309284bcf7251b57ef524a9c
This commit is contained in:
Daian Cardoso Sganderlla 2022-05-25 15:39:12 -04:00
parent be95984d5c
commit 940b39b77e

View File

@ -19,6 +19,11 @@ function wlog()
function get_by_path()
{
local dev_name=\$(basename \$1)
if echo "\$dev_name" | grep -q mpath; then
exec_retry 30 1 "ls /dev/mapper/\$dev_name" > /dev/null
fi
for p in /dev/mapper/mpath*; do
if [ "\$p" = "\$1" -o "\$p" = "/dev/mapper/\$dev_name" ]; then
find -L /dev/disk/by-id/dm-uuid* -samefile /dev/mapper/\$dev_name