Pick first device when several devices are matching real_root (bug #303531)
authordevsk <funtoos@yahoo.com>
Tue, 11 Jan 2011 12:20:40 +0000 (13:20 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 11 Jan 2011 12:24:21 +0000 (13:24 +0100)
defaults/linuxrc

index adaab62cb725657ccf04063350ce5dd0147f2ed1..1fc733b152489ff937606dc392029b7c230c1cd3 100755 (executable)
@@ -436,7 +436,7 @@ do
                                fi
                                
                                if [ ${retval} -ne 0 ]; then
-                                       ROOT_DEV=`blkid -t "${REAL_ROOT}" | cut -d ":" -f 1 2>/dev/null`
+                                       ROOT_DEV=`blkid -l -t "${REAL_ROOT}" | cut -d ":" -f 1 2>/dev/null`
                                        retval=$?
                                fi