summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-09-04 19:12:33 +0000
committerJeremy Katz <katzj@redhat.com>2001-09-04 19:12:33 +0000
commitc6cf98d47ffc02421c6225c024a2f1db09af1028 (patch)
tree66ad2216e794d8db165ba58578198964cbe19ef2 /kickstart.py
parent22382492069045ca2d89045e7b2be357661d77b2 (diff)
downloadanaconda-c6cf98d47ffc02421c6225c024a2f1db09af1028.tar.gz
anaconda-c6cf98d47ffc02421c6225c024a2f1db09af1028.tar.xz
anaconda-c6cf98d47ffc02421c6225c024a2f1db09af1028.zip
some kickstart partitioning sanity checks (52969)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index 7c2fa2224..41164ebbb 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -742,6 +742,11 @@ class KickstartBase(BaseInstallClass):
filesystem = fileSystemTypeGetDefault()
mountpoint = extra[0]
+ if (not size) and (not start and not end):
+ raise ValueError, "partition command requires a size specification"
+ if start and not disk:
+ raise ValueError, "partition command with start cylinder requires a drive specification"
+
# 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
# with ext[23]