From 51a6d118a6abc542191e3ecb7501c16d48532f3d Mon Sep 17 00:00:00 2001 From: Dan Voiculeasa Date: Wed, 27 Apr 2022 19:44:34 +0300 Subject: [PATCH] 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 Change-Id: I5f37a3e2bc72c5f46171d8b3b794c21644b13482 --- kickstart/files/kickstart.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index 01247a6b..52c0f57e 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -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