Skip to content

Commit

Permalink
fix(nbd): remove old udev version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbg authored and haraldh committed Apr 20, 2021
1 parent be30d98 commit fd15dba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules.d/95nbd/nbdroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ fsopts=${fsopts:+$fsopts,}${nbdrw}
i=0
while [ ! -b /dev/nbd0 ]; do
[ $i -ge 20 ] && exit 1
if [ "$UDEVVERSION" -ge 143 ]; then
udevadm settle --exit-if-exists=/dev/nbd0
else
sleep 0.1
fi
udevadm settle --exit-if-exists=/dev/nbd0
i=$((i + 1))
done

Expand Down

0 comments on commit fd15dba

Please sign in to comment.