summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-02-01 10:48:02 -0500
committerChris Lumens <clumens@redhat.com>2008-02-01 10:48:02 -0500
commit85415ef7b3969bdf6bea2100064d93a5f36b8939 (patch)
tree34578b1bfef84525335a86d04c8c0bc5477bd009 /anaconda
parent20bdc17e45d38ff4466fea988ebd59ff153d784e (diff)
downloadanaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.tar.gz
anaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.tar.xz
anaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.zip
Convert hd:// method strings into something yum understands.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda7
1 files changed, 7 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 1bbdf2593..08e6329a7 100755
--- a/anaconda
+++ b/anaconda
@@ -570,6 +570,13 @@ class Anaconda:
self.mediaDevice = device
self.methodstr = "file://" + tree
+ elif methodstr.startswith("hd://"):
+ (device, fstype, tree) = string.split(methodstr[5:], ":", 2)
+
+ if not tree.startswith("/"):
+ tree = "/%s" % tree
+
+ self.methodstr = "file://" + tree
else:
self.methodstr = methodstr