device-helper: reduce time count
This commit is contained in:
parent
7a6aaf0850
commit
c7d9f9ad76
@ -30,7 +30,7 @@ command -v blkid || exit 0
|
|||||||
# than the kernel initializes device. This prevents blkid to fetch data from
|
# than the kernel initializes device. This prevents blkid to fetch data from
|
||||||
# device. To fix this, we simply waiting until blkid is succeeded.
|
# device. To fix this, we simply waiting until blkid is succeeded.
|
||||||
while ! _blkid=$(blkid "/dev/${dev_name}"); do
|
while ! _blkid=$(blkid "/dev/${dev_name}"); do
|
||||||
if [ "$((count += 1))" = 30 ]; then
|
if [ "$((count += 1))" = 10 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user