]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib: try to set UDEVVERSION, if not set
authorHarald Hoyer <harald@redhat.com>
Tue, 1 Sep 2009 13:41:08 +0000 (15:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 1 Sep 2009 13:51:51 +0000 (15:51 +0200)
modules.d/99base/dracut-lib.sh

index 76cb127ae561f747b91a7fdbef94a9b01e728710..a717bb4b2f8e5fa69545ac788b7e9505e149de77 100644 (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