[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ofpath vs ofpathname vs grub-ofpathname



On 4/17/20 9:23 AM, John Paul Adrian Glaubitz wrote:
> It would be handy to have access to a G5 running Linux now. It seems that
> get_hbtl() needs to be extended to include the target ID in its output.

Never mind, it's actually "ID" in the function get_hbtl().

Can you test whether the following patch fixes the problem?

diff --git a/scripts/ofpathname b/scripts/ofpathname
index 375154e..3564485 100755
--- a/scripts/ofpathname
+++ b/scripts/ofpathname
@@ -955,7 +955,7 @@ l2of_scsi()
             scsi_name="scsi@$BUS"
             OF_PATH=$OF_PATH/$scsi_name
         elif [[ $scsi_name != "scsi" && "$PLATFORM" = "mac" && $devtype != "ata" ]]; then
-            scsi_name="@$BUS"
+            scsi_name="@$ID"
             OF_PATH=$OF_PATH/$scsi_name
         fi

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: