summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-07-18 11:33:53 -0400
committerChris Lumens <clumens@redhat.com>2008-07-18 11:33:53 -0400
commitd87350714de9031b1e721d148036208c9ab1df8d (patch)
treec4b6303a6d813a1c5924c1ce2f2e527b3efc217a /image.py
parentf9ee521f1641676f5fb38d5a169271e81eee028a (diff)
downloadanaconda-d87350714de9031b1e721d148036208c9ab1df8d.tar.gz
anaconda-d87350714de9031b1e721d148036208c9ab1df8d.tar.xz
anaconda-d87350714de9031b1e721d148036208c9ab1df8d.zip
We no longer add the fstype to the hd: method in loader.
Diffstat (limited to 'image.py')
-rw-r--r--image.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/image.py b/image.py
index 4c3708b6e..f942fe182 100644
--- a/image.py
+++ b/image.py
@@ -128,10 +128,14 @@ def getMediaId(path):
def mountDirectory(methodstr, messageWindow):
if methodstr.startswith("hd:"):
method = methodstr[3:]
- (device, fstype, path) = method.split(":", 3)
- device = method[0:method.index(":")]
+ if method.count(":") == 1:
+ (device, path) = method.split(":")
+ fstype = "auto"
+ else:
+ (device, fstype, path) = method.split(":")
- if not device.startswith("/dev/"):
+ if not device.startswith("/dev/") and not device.startswith("UUID=") \
+ and not device.startswith("LABEL="):
device = "/dev/%s" % device
elif methodstr.startswith("nfsiso:"):
device = methodstr[7:]