diff options
author | Mike Fulbright <msf@redhat.com> | 2003-04-11 18:56:34 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-04-11 18:56:34 +0000 |
commit | 797f74d8eebc5bab256d9ecb3e033f960c57a30b (patch) | |
tree | 1f7b4111f3e68219149a9b7e2d6375f260745830 /kickstart.py | |
parent | 6c580a57828754966f88ec270cb1a43856a6a2c6 (diff) | |
download | anaconda-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.py | 8 |
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:]: |