commit:     45a62aa1f72eab76fcd91d56bb6c648f0c7ad364
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon May  5 14:58:33 2025 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon May  5 14:58:33 2025 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=45a62aa1

create-qcow2: wait 5s to ensure the partition device nodes exist

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 targets/support/create-qcow2.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/targets/support/create-qcow2.sh b/targets/support/create-qcow2.sh
index f8cfb5ef..3fca589d 100755
--- a/targets/support/create-qcow2.sh
+++ b/targets/support/create-qcow2.sh
@@ -125,6 +125,9 @@ partprobe ${mydevice} || qcow2die "Probing partition table 
failed"
 echo "Printing the partition table"
 parted -s ${mydevice} -- print || qcow2die "Printing the partition table 
failed"
 
+echo "Waiting 5s to ensure the partition device nodes exist"
+sleep 5s
+
 echo "Making a vfat filesystem in p1"
 mkfs.fat -v -F 32 -n gentooefi ${mypartefi} || qcow2die "Formatting EFI 
partition failed"
 

Reply via email to