summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--kickstart.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 47854e1c3..d37de6128 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-09-27 Jeremy Katz <katzj@redhat.com>
+ * kickstart.py (KickstartBase.definePartition): strip /dev from
+ --onpart (inspired by #121486)
+
* loader2/hdinstall.c: skip over /dev if given for path (#121486)
* lang-table: Use no instead of no-latin1 as
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: