summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-04-11 18:56:34 +0000
committerMike Fulbright <msf@redhat.com>2003-04-11 18:56:34 +0000
commit797f74d8eebc5bab256d9ecb3e033f960c57a30b (patch)
tree1f7b4111f3e68219149a9b7e2d6375f260745830 /kickstart.py
parent6c580a57828754966f88ec270cb1a43856a6a2c6 (diff)
downloadanaconda-797f74d8eebc5bab256d9ecb3e033f960c57a30b.tar.gz
anaconda-797f74d8eebc5bab256d9ecb3e033f960c57a30b.tar.xz
anaconda-797f74d8eebc5bab256d9ecb3e033f960c57a30b.zip
some simple mountpoint sanity checking for kickstart parsing.
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index 70d8b0f49..a06373e72 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -794,6 +794,10 @@ class KickstartBase(BaseInstallClass):
mountpoint = extra[0]
+ # sanity check mountpoint
+ if mountpoint is not None and mountpoint[0] != '/':
+ raise RuntimeError, "The mount point \"%s\" is not valid." % (mountpoint,)
+
if not vgname:
raise RuntimeError, "Must specify the volume group for the logical volume to be in"
if not size and not percent and not preexist:
@@ -910,6 +914,10 @@ class KickstartBase(BaseInstallClass):
mountpoint = extra[0]
+ # sanity check mountpoint
+ if mountpoint is not None and mountpoint[0] != '/':
+ raise RuntimeError, "The mount point \"%s\" is not valid." % (mountpoint,)
+
raidmems = []
# get the unique ids of each of the raid members
for member in extra[1:]: