From 940b39b77eefd608f4bfed8723b166c37b317668 Mon Sep 17 00:00:00 2001 From: Daian Cardoso Sganderlla Date: Wed, 25 May 2022 15:39:12 -0400 Subject: [PATCH] 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 Change-Id: I4b79b00ff2e3f4db309284bcf7251b57ef524a9c --- bsp-files/kickstarts/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bsp-files/kickstarts/functions.sh b/bsp-files/kickstarts/functions.sh index 4ff20def..38b7f508 100644 --- a/bsp-files/kickstarts/functions.sh +++ b/bsp-files/kickstarts/functions.sh @@ -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