diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-20 21:11:55 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-20 21:11:55 +0000 |
commit | 63418965e79525f0bd86df0292c934f429b591d2 (patch) | |
tree | c1de161914906197a50d76604336f8cb08ea372f /partitioning.py | |
parent | dd9ca746d22db0fe265ba2146d117e1d3123bdc3 (diff) | |
download | anaconda-63418965e79525f0bd86df0292c934f429b591d2.tar.gz anaconda-63418965e79525f0bd86df0292c934f429b591d2.tar.xz anaconda-63418965e79525f0bd86df0292c934f429b591d2.zip |
do sanity checking for autopart and therefore, sanity check kickstart.
critical errors don't allow you to continue, warnings to log
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/partitioning.py b/partitioning.py index cd4dc38ca..d157b5c72 100644 --- a/partitioning.py +++ b/partitioning.py @@ -492,7 +492,9 @@ def sanityCheckRaidRequest(reqpartitions, newraid): # can make sure you don't have anything silly (like no /, a really small /, # etc). returns (errors, warnings) where each is a list of strings or None # if there are none -def sanityCheckAllRequests(requests): +# if baseChecks is set, the basic sanity tests which the UI runs prior to +# accepting a partition will be run on the requests +def sanityCheckAllRequests(requests, baseChecks = 0): checkSizes = [('/usr', 250), ('/tmp', 50), ('/var', 50), ('/home', 100), ('/boot', 20)] warnings = [] @@ -517,6 +519,17 @@ def sanityCheckAllRequests(requests): foundSwap = foundSwap + 1 swapSize = swapSize + request.size break + if baseChecks: + rc = doPartitionSizeCheck(request) + if rc: + warnings.append(rc) + rc = doMountPointLinuxFSChecks(request) + if rc: + errors.append(rc) + if request.type == REQUEST_RAID: + rc = sanityCheckRaidRequest(requests, request) + if rc: + errors.append(rc) if foundSwap == 0: warnings.append(_("You have not specified a swap partition. Although not strictly required in all cases, it will significantly improve performance for most installations.")) |