]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
check for root after udevadm settle returns
authorHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2009 11:54:44 +0000 (13:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2009 13:03:11 +0000 (15:03 +0200)
modules.d/99base/init

index fe062ebfcfb2647d236a0c52a9256b2ac2d792bb..bced5b25a585a725f35e6539d393c89b2a294ef4 100755 (executable)
@@ -103,6 +103,12 @@ while :; do
     else
         udevadm settle --timeout=30
     fi
+
+    # bail out, if we have mounted the root filesystem
+    [ -d "$NEWROOT/proc" ] && break;
+    # check if root can be mounted
+    [ -e /dev/root ] && break;
     unset queuetriggered
     if [ -f /initqueue/work ]; then
         rm /initqueue/work