X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ybin%2Fyabootconfig;fp=ybin%2Fyabootconfig;h=998b8cf31b36805948bfa49743120097401b060a;hb=e348755b9f809dd5b83111c8cfd3dc14e641f01a;hp=0fc5c5e50fc0039257e763ea7c15606ae9bad17c;hpb=1a5ba1223587f7153a5557a4d31626f9a407ba39;p=yaboot.git diff --git a/ybin/yabootconfig b/ybin/yabootconfig index 0fc5c5e..998b8cf 100755 --- a/ybin/yabootconfig +++ b/ybin/yabootconfig @@ -375,7 +375,7 @@ fi ## find / device if [ -z "$ROOT" ] ; then ## IMPORTANT! that last substitution is [] 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..."