diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-07-07 19:37:10 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-07-07 19:37:10 +0000 |
commit | d7cd62fd6dec78eb87f12a01b989d2b225528a94 (patch) | |
tree | 1c162721b0a06cf648fe5dd554b8be325b03a510 /kickstart.py | |
parent | d17d32b77b84af50153ddfb93f787afb5cb5a2b2 (diff) | |
download | anaconda-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.py | 2 |
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 |