diff options
| author | David Cantrell <dcantrell@redhat.com> | 2010-01-13 14:37:20 -1000 |
|---|---|---|
| committer | David Cantrell <dcantrell@redhat.com> | 2010-01-13 14:37:20 -1000 |
| commit | 6b5bb53fc915e9031e1469a5c365ec44865351cb (patch) | |
| tree | a7c6c8bc16ca1b881f4797d811aa106c6c1aff25 /loader | |
| parent | 3b0f398a4f1b2921e2c4c22b671775499196be75 (diff) | |
| download | anaconda-6b5bb53fc915e9031e1469a5c365ec44865351cb.tar.gz anaconda-6b5bb53fc915e9031e1469a5c365ec44865351cb.tar.xz anaconda-6b5bb53fc915e9031e1469a5c365ec44865351cb.zip | |
Fix path mistakes in dasd_settle() in loader/linuxrc.s390
Fix some stupid path mistakes in dasd_settle().
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/linuxrc.s390 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390 index 7fd3f4fa2..f55ab3b1e 100644 --- a/loader/linuxrc.s390 +++ b/loader/linuxrc.s390 @@ -130,13 +130,13 @@ function sysecho () { } function dasd_settle() { - local dasd=/sys/bus/ccw/devices/$1 - if [ ! -d "$dasd" ]; then + local dasd_status=/sys/bus/ccw/devices/$1/status + if [ ! -f $dasd_status ]; then return 1 fi local i=1 while [ $i -le 30 ] ; do - status="$(< /sys/bus/ccw/devices/$dasd/status 2>/dev/null)" + status="$(< $dasd_status 2>/dev/null)" case $status in online|unformatted) return 0 ;; |
