summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-09-27 19:10:19 +0000
committerJeremy Katz <katzj@redhat.com>2004-09-27 19:10:19 +0000
commit367ca94f3875d4ce8f60c46a3f1a02fdfab1a133 (patch)
tree115f946982aa13bb514621d7810a4aabe913c0ce /kickstart.py
parente865ed763057f73b03db1a12591f051a54121f1b (diff)
downloadanaconda-367ca94f3875d4ce8f60c46a3f1a02fdfab1a133.tar.gz
anaconda-367ca94f3875d4ce8f60c46a3f1a02fdfab1a133.tar.xz
anaconda-367ca94f3875d4ce8f60c46a3f1a02fdfab1a133.zip
2004-09-27 Jeremy Katz <katzj@redhat.com>
* kickstart.py (KickstartBase.definePartition): strip /dev from --onpart (inspired by #121486)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index 087761fe4..f6a010424 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1270,6 +1270,9 @@ class KickstartBase(BaseInstallClass):
if badblocks:
request.badblocks = badblocks
if onPart:
+ # strip spurious /dev
+ if onPart.startswith("/dev/"):
+ onPart = onPart[5:]
request.device = onPart
for areq in id.partitions.autoPartitionRequests:
if areq.device is not None and areq.device == onPart: