summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-11-03 11:07:03 -0500
committerJeremy Katz <katzj@redhat.com>2008-11-03 11:07:03 -0500
commit2607c13902e818ba3d365305d1e1630bbb88dfbd (patch)
tree76c63c2cd2050e755d07f255d09a79bd4f36a530
parentf686a94f7d8e52d4e4222162fb54aa93dc7af2d1 (diff)
downloadanaconda-2607c13902e818ba3d365305d1e1630bbb88dfbd.tar.gz
anaconda-2607c13902e818ba3d365305d1e1630bbb88dfbd.tar.xz
anaconda-2607c13902e818ba3d365305d1e1630bbb88dfbd.zip
Check for required space for / on live installs (#468867)
We can actually check earlier on the live image how much space is needed and so we can pass that along. This reuses a string from later in the file so that we don't break the string freeze
-rw-r--r--partitions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py
index a256e1a20..baf8faf47 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1216,6 +1216,15 @@ class Partitions:
"megabytes which is usually too small to "
"install %s.") % (productName,))
+ if (slash and self.anaconda and
+ (slash.getActualSize(self, diskset) <
+ self.anaconda.backend.getMinimumSizeMB("/"))):
+ errors.append(_("Your %s partition is less than %s "
+ "megabytes which is lower than recommended "
+ "for a normal %s install.")
+ %("/", self.anaconda.backend.getMinimumSizeMB("/"),
+ productName))
+
def getBaseReqs(reqs):
n = 0
while not reduce(lambda x,y: x and (y.type not in [REQUEST_RAID, REQUEST_LV]),