diff options
author | 2012-05-12 03:20:41 +0000 | |
---|---|---|
committer | 2012-05-12 03:20:41 +0000 | |
commit | 56f8368791f4e6de3f2b2e206599aba461b8bfff (patch) | |
tree | 9b505e62eb2c217edfb5fb25b4bd9dd6fbeb90b4 /sys-boot/yaboot-static/files | |
parent | keyword ~amd64-fbsd (diff) | |
download | gentoo-2-56f8368791f4e6de3f2b2e206599aba461b8bfff.tar.gz gentoo-2-56f8368791f4e6de3f2b2e206599aba461b8bfff.tar.bz2 gentoo-2-56f8368791f4e6de3f2b2e206599aba461b8bfff.zip |
Added patch to fix devspec path on newer kernels.
(Portage version: 2.1.10.57/cvs/Linux x86_64)
Diffstat (limited to 'sys-boot/yaboot-static/files')
-rw-r--r-- | sys-boot/yaboot-static/files/new-ofpath-devspec.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-boot/yaboot-static/files/new-ofpath-devspec.patch b/sys-boot/yaboot-static/files/new-ofpath-devspec.patch new file mode 100644 index 000000000000..eec840ee10fe --- /dev/null +++ b/sys-boot/yaboot-static/files/new-ofpath-devspec.patch @@ -0,0 +1,28 @@ +--- usr/sbin/ofpath.bak 2012-05-09 12:24:51.709911981 -0400 ++++ usr/sbin/ofpath 2012-05-09 12:32:19.661560544 -0400 +@@ -85,11 +85,20 @@ + [ "$DEBUG" = 1 ] && echo "Devpath is: $DEVPATH" + + ### Get the OF Path of the controller +-case ${DISK_NAME} in +- sd*|sg*|sr*) CONTROLLER_PATH=$(cat ${DEVPATH}/../../../devspec) ;; +- hd*) CONTROLLER_PATH=$(cat ${DEVPATH}/../../devspec) ;; +- *) CONTROLLER_PATH="" ;; +-esac ++if [ -e "${DEVPATH}/../../devspec" ]; then ++ ### /dev/hd* ++ CONTROLLER_PATH=$(cat ${DEVPATH}/../../devspec); ++elif [ -e "${DEVPATH}/../../../devspec" ]; then ++ ### /dev/sd* on kernel <3.3 ++ CONTROLLER_PATH=$(cat ${DEVPATH}/../../../devspec); ++elif [ -e "${DEVPATH}/../../../../devspec" ]; then ++ ### /dev/sd* on kernel 3.3+ ++ CONTROLLER_PATH=$(cat ${DEVPATH}/../../../../devspec); ++else ++ ### None of the above... ++ CONTROLLER_PATH=""; ++fi ++ + if [ -z "$CONTROLLER_PATH" ]; then + echo "Unable to determine controller path!" + exit 1 |