]> git.ozlabs.org Git - yaboot.git/blobdiff - ybin/yabootconfig
Fix rare fstab parsing bug in yabootconfig
[yaboot.git] / ybin / yabootconfig
index 0fc5c5e50fc0039257e763ea7c15606ae9bad17c..998b8cf31b36805948bfa49743120097401b060a 100755 (executable)
@@ -375,7 +375,7 @@ fi
 ## find / device
 if [ -z "$ROOT" ] ; then
     ## IMPORTANT! that last substitution is [<space><tab>] thats all ash will grok
-    ROOT="$(v=`grep '[[:blank:]]/[[:blank:]]' ${CHROOT}etc/fstab` ; echo ${v%%[        ]*})"
+    ROOT="$(v=`grep '^[^#].*[[:blank:]]/[[:blank:]]' ${CHROOT}etc/fstab` ; echo ${v%%[         ]*})"
     debug "ROOT=$ROOT\n"
     if [ -z "$ROOT" ] ; then
        echo 1>&2 "$PRG: Could not determine root partition, aborting..."