dracut-lib: try to set UDEVVERSION, if not set

master
Harald Hoyer 2009-09-01 15:41:08 +02:00
parent b809e77f54
commit 8ef0be5671
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ incol2() {
}

udevsettle() {
[ -z "$UDEVVERSION" ] && UDEVVERSION=$(udevadm --version)

if [ $UDEVVERSION -ge 143 ]; then
udevadm settle --exit-if-exists=/initqueue/work --exit-if-exists=/dev/root
else