wenxiong@linux.ibm.com
<wenxiong@linux.ibm.com>unread,Nov 15, 2023, 5:31:41 PM11/15/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
to tyreld@linux.ibm.com, powerpc-utils-devel@googlegroups.com, wenxiong@us.ibm.com, Wen Xiong
From: Wen Xiong <
wenx...@linux.ibm.com>
Installation fails if nsid of nvme device is greater than 10.
The patch fixes the issue and handle nsid of nvme ad a hex number.
Signed-off-by: Wen Xiong <
wenx...@linux.ibm.com>
---
scripts/ofpathname | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/ofpathname b/scripts/ofpathname
index 3abe4d1..833d03f 100755
--- a/scripts/ofpathname
+++ b/scripts/ofpathname
@@ -722,6 +722,7 @@ l2of_nvme()
err $ERR_NO_OFPATH
fi
+ devnsid=$(printf "%x" $devnsid)
OF_PATH="$OF_PATH/$devtype@$devnsid"
# No partition (pZ) specified.
@@ -1798,6 +1799,7 @@ of2l_nvme()
cd $dir
local devnsid=`$CAT ./nsid 2>/dev/null`
+ devnsid=$(printf "%x" $devnsid)
if [[ $devnsid = $nsid ]]; then
LOGICAL_DEVNAME="${dir##*/}"
break
--
2.39.3