From fb19c524bfae0a8105d9321eec4c60daa2f60a03 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Fri, 10 Feb 2006 01:29:18 +0000 Subject: [PATCH] Fix ofpath for G5 with multiple drives Fix ofpath for G5 with multiple drives git-archimport-id: pnasrat@redhat.com/yaboot--devel--1.3--patch-3 --- ybin/ofpath | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ybin/ofpath b/ybin/ofpath index 5cc33f2..db9957c 100755 --- a/ybin/ofpath +++ b/ybin/ofpath @@ -298,10 +298,10 @@ scsi_ofpath() echo "${DEVICE_PATH##*device-tree}/@$DEVICE_ID:$PARTITION" ;; ata_k2|sata_svw) - HOST_LIST="$(for i in `find /proc/device-tree -name compatible` ; do - lgrep "$i" "k2-s-ata" ; done)" + HOST_LIST="$(for i in `find /proc/device-tree -name compatible ` ; do + lgrep "$i" "k2-sata" ; done | sort)" DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)" - echo "${DEVICE_PATH##*device-tree}/k2-sata@$DEVICE_ID/disk@0:$PARTITION" + echo "${DEVICE_PATH##*device-tree}/disk@0:$PARTITION" ;; *) echo 1>&2 "$PRG: Driver: $SCSI_DRIVER is not supported" -- 2.39.2