summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-07 19:37:10 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-07 19:37:10 +0000
commitd7cd62fd6dec78eb87f12a01b989d2b225528a94 (patch)
tree1c162721b0a06cf648fe5dd554b8be325b03a510 /kickstart.py
parentd17d32b77b84af50153ddfb93f787afb5cb5a2b2 (diff)
downloadanaconda-d7cd62fd6dec78eb87f12a01b989d2b225528a94.tar.gz
anaconda-d7cd62fd6dec78eb87f12a01b989d2b225528a94.tar.xz
anaconda-d7cd62fd6dec78eb87f12a01b989d2b225528a94.zip
raise a value error if the specified drive doesn't exist (to make it a little bit more clear when you have a bad kickstart file
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index 78e78bd88..79458df6b 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1098,6 +1098,8 @@ class KickstartBase(BaseInstallClass):
raise ValueError, "partition command requires a size specification"
if start and not disk:
raise ValueError, "partition command with start cylinder requires a drive specification"
+ if disk and disk not in isys.hardDriveDict().keys():
+ raise ValueError, "specified disk %s in partition command which does not exist" %(disk,)
# XXX bytes per inode is the only per fs option at the moment
# and we can assume that it works like this since it only works