mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Give up on waiting for disks
Some profiles may have all disk support suppressed through blacklist until %pre comes along to fix it. This avoids /dev/disk ever existing. Wait up until 10 seconds before giving up. This gives disk subsystem a fair chance to speed up and avoid a wait, with a fallback worst case of 10 seconds
This commit is contained in:
		@@ -38,8 +38,10 @@ umask 0077
 | 
			
		||||
mkdir -p /etc/confluent
 | 
			
		||||
echo -n > /etc/confluent/confluent.info
 | 
			
		||||
umask $oum
 | 
			
		||||
while [ ! -e /dev/disk ]; do
 | 
			
		||||
TRIES=5
 | 
			
		||||
while [ ! -e /dev/disk ] && [ $TRIES -gt 0 ]; do
 | 
			
		||||
    sleep 2
 | 
			
		||||
    TRIES=$((TRIES - 1))
 | 
			
		||||
done
 | 
			
		||||
if [ -e /dev/disk/by-label/CNFLNT_IDNT ]; then
 | 
			
		||||
    tmnt=/tmp/idntmnt
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user