X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=ybin%2Fybin;h=c1e95bac1a40f8404f5758e9d4e499bcdc809e7d;hp=44e63f4468090698d9b62b22f9c76f00561e7850;hb=396aa4f25cd3d454f9830989fa279072f43811d7;hpb=b1bdfaf8b8da39e0aa888643b1998a948f83e7dd diff --git a/ybin/ybin b/ybin/ybin index 44e63f4..c1e95ba 100755 --- a/ybin/ybin +++ b/ybin/ybin @@ -73,7 +73,9 @@ fi ## defaults usemount=no -if (cat /proc/cpuinfo 2> /dev/null | grep ^machine | grep -q 'CHRP IBM') ; then +if (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'pSeries') ; then + fstype=raw +elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'PowerNV') ; then fstype=raw else fstype=hfs @@ -504,7 +506,11 @@ checkconf() echo 1>&2 [ "$nonvram" = 0 ] && echo 1>&2 "$PRG: OldWorld PowerMac, nvram will not be updated" nonvram=1 - elif (cat /proc/cpuinfo 2> /dev/null | grep ^machine | grep -q 'CHRP IBM') ; then + elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'pSeries') ; then + ## IBM hardware does not need nvram update AFAICT + nonvram=1 + ADDNOTE=yes + elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'PowerNV') ; then ## IBM hardware does not need nvram update AFAICT nonvram=1 ADDNOTE=yes