summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-13 16:01:45 -0400
committerChris Lumens <clumens@redhat.com>2008-03-13 16:01:45 -0400
commit4df2e30c9e1d9711eb96ff930dbad46eca99acb2 (patch)
treee1b442fbc6ed464d9b138893ae52a76ab24d042d /anaconda
parent169b3a293dc5cbabff289e3fc719a2ffbadbc95c (diff)
downloadanaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.tar.gz
anaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.tar.xz
anaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.zip
Fix the format of the method=hd: parameter.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda7
1 files changed, 2 insertions, 5 deletions
diff --git a/anaconda b/anaconda
index 61ebacab5..ba3735245 100755
--- a/anaconda
+++ b/anaconda
@@ -583,11 +583,8 @@ class Anaconda:
f.write("url --url %s\n" % urllib.unquote(self._loaderMethodstr))
elif self._loaderMethodstr.startswith('cdrom://'):
f.write("cdrom\n")
- elif self._loaderMethodstr.startswith('hd://'):
- pidx = string.find(self._loaderMethodstr, '//') + 2
- didx = string.find(self._loaderMethodstr[pidx:], '/')
- partition = string.split(self._loaderMethodstr[pidx:pidx+didx], ':')[0]
- dir = self._loaderMethodstr[pidx+didx+1:]
+ elif self._loaderMethodstr.startswith('hd:'):
+ (method, partition, dir) = string.split(self._loaderMethodstr, ':')
f.write("harddrive --partition=%s --dir=%s\n" % (partition, dir))
elif self._loaderMethodstr.startswith('nfs:') or self._loaderMethodstr.startswith('nfsiso:'):
(method, server, dir) = string.split(self._loaderMethodstr, ':')