summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2010-02-10 12:04:57 -1000
committerDavid Cantrell <dcantrell@redhat.com>2010-02-11 06:17:15 -1000
commit84904cdfc5b6822ac62c39694b07eb323b59b2f3 (patch)
treed2388b55aa0a4fcb1b6237270e918d594abb212f
parent693dd0af0b952ba880e09c2d7a03797a93feec51 (diff)
downloadanaconda-84904cdfc5b6822ac62c39694b07eb323b59b2f3.tar.gz
anaconda-84904cdfc5b6822ac62c39694b07eb323b59b2f3.tar.xz
anaconda-84904cdfc5b6822ac62c39694b07eb323b59b2f3.zip
Use /sys/devices/lcs instead of /sys/devices/cu3088 (#561816).
The kernel change is in place and the cu3088 sysfs path is going away at some point. For CTC and LCS devices, we need to use the /sys/devices/lcs path.
-rw-r--r--loader/linuxrc.s39012
1 files changed, 6 insertions, 6 deletions
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 47a769f73..6a8d2c227 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -607,7 +607,7 @@ function set_device_online() {
local sysnettype
case "${NETTYPE}" in
qeth) sysnettype=${NETTYPE} ;;
- lcs|ctc) sysnettype=cu3088 ;;
+ lcs|ctc) sysnettype=lcs ;;
esac
if ! [ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ]; then
echo $"Sysfs path to set device online does not exist."
@@ -804,7 +804,7 @@ function rollback_config() {
local sysnettype
case "${NETTYPE}" in
qeth) sysnettype=${NETTYPE} ;;
- lcs|ctc) sysnettype=cu3088 ;;
+ lcs|ctc) sysnettype=lcs ;;
esac
[ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ] && \
sysecho /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online "0"
@@ -1362,9 +1362,9 @@ function handle_subchannels() {
fi
;;
ctc|lcs)
- if [ -f /sys/devices/cu3088/$SCH_R_DEVBUSID/type ]; then
+ if [ -f /sys/devices/lcs/$SCH_R_DEVBUSID/type ]; then
local type
- read type < /sys/devices/cu3088/$SCH_R_DEVBUSID/type
+ read type < /sys/devices/lcs/$SCH_R_DEVBUSID/type
[ "$type" = "CTC/A" ] && \
type="channel-to-channel adapter (CTC/A)"
echo $"Detected: $type"
@@ -1721,7 +1721,7 @@ function syntax_check_ctcprot() {
function handle_ctcprot() {
[ -n "$CTCPROT" ] || return 0
- if sysecho /sys/devices/cu3088/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then
+ if sysecho /sys/devices/lcs/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then
return 0
fi
echo $"Could not configure CTC protocol $CTCPROT for $SUBCHANNELS"
@@ -1775,7 +1775,7 @@ function syntax_check_lcs_portno() {
function handle_lcs_portno() {
[ -n "$PORTNAME" ] || return 0
- if sysecho /sys/devices/cu3088/$SCH_R_DEVBUSID/portno "$PORTNAME"; then
+ if sysecho /sys/devices/lcs/$SCH_R_DEVBUSID/portno "$PORTNAME"; then
return 0
fi
echo $"Could not configure relative port number $PORTNAME for $SUBCHANNELS"