Debian KS: Update waiting for disks to become available

This work only affects Debian. This fixes an install issue.

With the introduction of [1] pre-start kickstart was split to
ks-early and pre-start. Logic was changed to use INSTDEV computed by
LAT between ks-early and pre-start. udevadm settle needs to happen
before computing INSTDEV, this means we need to move udevadm settle
from pre-start to ks-early.

[1] https://github.com/Wind-River/meta-lat/commit/
9cdcb08b9876e842d75ee7ba6e90bde1d67ac2c6

Tests on AIO-SX:
PASS: 10 times successful installs in a row, in an env that
      install failed ~6/10 times.

Story: 2009964
Task: 45068
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I5f37a3e2bc72c5f46171d8b3b794c21644b13482
This commit is contained in:
Dan Voiculeasa 2022-04-27 19:44:34 +03:00
parent 82611300e7
commit 51a6d118a6

View File

@ -599,6 +599,10 @@ ilog "***********************************************"
ilog "** Pre Partition - Volume Remove & Wipe Disk **"
ilog "***********************************************"
ilog "Waiting for disks to be available"
udevadm settle --timeout=300 || report_failure_with_msg "udevadm settle failed"
ilog "Disks became available"
# Default traits to AIO if missing
if [ -z "${traits}" ] ; then
traits="controller,worker"
@ -702,10 +706,6 @@ HOOK_LABEL="pre-part"
# From pre_disk_setup_common.cfg
#####################################################
ilog "Waiting for disks to be available"
udevadm settle --timeout=300 || report_failure_with_msg "udevadm settle failed"
ilog "Disks became available"
if [ -n "$INSTDEV" ] ; then
instdev_by_path=$(get_by_path $INSTDEV)
if [ -z ${instdev_by_path} ] ; then