summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2010-05-06 11:31:20 -1000
committerDavid Cantrell <dcantrell@redhat.com>2010-05-06 11:32:34 -1000
commit1e3b4622bee07014fa5ef678885445510000e9c2 (patch)
tree8fa1223a919f5008234a2ef802bc030ea0305771
parentb2bda71a68768077d716fde60b19dd2134572d03 (diff)
downloadanaconda-1e3b4622bee07014fa5ef678885445510000e9c2.tar.gz
anaconda-1e3b4622bee07014fa5ef678885445510000e9c2.tar.xz
anaconda-1e3b4622bee07014fa5ef678885445510000e9c2.zip
Just use /dev/dasdX if we can't get a by-path link
If there is no by-path device link, just show the user the /dev/dasdX name. Related: rhbz#589713
-rw-r--r--storage/dasd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/dasd.py b/storage/dasd.py
index 8d57c1f46..df324dbd8 100644
--- a/storage/dasd.py
+++ b/storage/dasd.py
@@ -102,6 +102,9 @@ class DASD:
if status in ["unformatted"] and device not in exclusiveDisks:
bypath = deviceNameToDiskByPath(device)
+ if not bypath:
+ bypath = "/dev/" + device
+
log.info(" %s (%s) status is %s, needs dasdfmt" % (device,
bypath,
status,))