44 lines
1.8 KiB
Diff
44 lines
1.8 KiB
Diff
|
From da5ce33f51b2607c372acfc0e9bb28bf5270ef65 Mon Sep 17 00:00:00 2001
|
||
|
From: Petr Stodulka <pstodulk@redhat.com>
|
||
|
Date: Sat, 4 May 2024 10:07:14 +0200
|
||
|
Subject: [PATCH 33/34] storage initialisation: apply sleep always
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
Based on feedback from @rmetrich¹ the sleep period should be applied
|
||
|
always as the problem with initialisation is happening also on systems
|
||
|
with higher than few number of LVs where /usr is not on dedicated
|
||
|
volume.
|
||
|
|
||
|
1: https://github.com/oamg/leapp-repository/pull/1218#issuecomment-2093303020
|
||
|
---
|
||
|
.../files/dracut/85sys-upgrade-redhat/mount_usr.sh | 5 +++--
|
||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/repos/system_upgrade/common/actors/commonleappdracutmodules/files/dracut/85sys-upgrade-redhat/mount_usr.sh b/repos/system_upgrade/common/actors/commonleappdracutmodules/files/dracut/85sys-upgrade-redhat/mount_usr.sh
|
||
|
index db065d87..84f4857d 100755
|
||
|
--- a/repos/system_upgrade/common/actors/commonleappdracutmodules/files/dracut/85sys-upgrade-redhat/mount_usr.sh
|
||
|
+++ b/repos/system_upgrade/common/actors/commonleappdracutmodules/files/dracut/85sys-upgrade-redhat/mount_usr.sh
|
||
|
@@ -127,6 +127,8 @@ try_to_mount_usr() {
|
||
|
_sleep_timeout=15
|
||
|
_last_attempt="false"
|
||
|
for i in 0 1 2 3 4 5 6 7 8 9 10 11; do
|
||
|
+ info "Storage initialisation: Attempt $i of 11. Wait $_sleep_timeout seconds."
|
||
|
+ sleep $_sleep_timeout
|
||
|
if [ $i -eq 11 ]; then
|
||
|
_last_attempt="true"
|
||
|
fi
|
||
|
@@ -141,7 +143,6 @@ for i in 0 1 2 3 4 5 6 7 8 9 10 11; do
|
||
|
break
|
||
|
fi
|
||
|
|
||
|
- warn "Failed attempt to initialize the storage. Retry in $_sleep_timeout seconds. Attempt: $i of 10"
|
||
|
- sleep $_sleep_timeout
|
||
|
+ warn "Failed attempt to initialize the storage. Retry..."
|
||
|
done
|
||
|
|
||
|
--
|
||
|
2.42.0
|
||
|
|