95a9d2d699
Add two patches to update the init and lat-installer scripts to - fully parameterize ostree boot and root devices for A and B locations so that devices can be specified - add support for specifying an ostree var device that will be used for the dynamic R/W data. This was previously specified by a hard coded 'LABEL=fluxdata' partition. Rename patches 0003-0008 as former patch 0002 was removed with a previous commit. Test Plan: - PASS: BIOS AIO-SX - PASS: UEFI AIO-SX - PASS: BIOS 2+2+2 - SKIP: secure boot, not ready for Stx8.0 - PASS: AIO-SX upgrade - PASS: duplex upgrade - PASS: DC subcloud install (virtual test) Change-Id: I9fbe3fc89b05743b9c6090c05d3d011e2ba48eda Story: 2010444 Task: 46883 Signed-off-by: Robert Church <robert.church@windriver.com>
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From: Dan Voiculeasa <dan.voiculeasa@windriver.com>
|
|
Date: Tue, 19 Jul 2022 10:32:46 +0300
|
|
Subject: Wait for devices to be configured after boot
|
|
|
|
It was observed that dhcp requests happen too soon after boot.
|
|
It may happen that the NIC driver won't rename the interface
|
|
because it is in use.
|
|
Time is needed for drivers to rename NICs before using them.
|
|
|
|
Use 'udevadm settle' to let the devices be configured before
|
|
continuing the configuration process.
|
|
|
|
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
|
|
---
|
|
init-ostree-install.sh | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/init-ostree-install.sh b/init-ostree-install.sh
|
|
index 79496e0..befeac7 100644
|
|
--- a/init-ostree-install.sh
|
|
+++ b/init-ostree-install.sh
|
|
@@ -920,7 +920,9 @@ if [ "$INSTSH" = 1 -o "$INSTSH" = 3 -o "$INSTSH" = 4 ] ; then
|
|
lreboot
|
|
fi
|
|
|
|
-udevadm settle --timeout=3
|
|
+echo "Waiting up to 5 minutes for devices to be properly configured."
|
|
+udevadm settle --timeout=300 || fatal "udevadm settle timed out after 300 seconds"
|
|
+echo "Devices should be properly configured."
|
|
|
|
if [ "$INSTNAME" = "" ] ; then
|
|
fatal "Error no remote archive name, need kernel argument: instname=..."
|