diff options
author | Chris Lumens <clumens@redhat.com> | 2009-06-09 11:16:40 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-06-10 09:38:10 -0400 |
commit | de9b37679720568fa72624875e7a3b40dc73a44f (patch) | |
tree | ac3f605f47664905b7ae98d304679f8fed9e8455 /storage/__init__.py | |
parent | 8289217588d4916f595894dcec136e9ab738097e (diff) | |
download | anaconda-de9b37679720568fa72624875e7a3b40dc73a44f.tar.gz anaconda-de9b37679720568fa72624875e7a3b40dc73a44f.tar.xz anaconda-de9b37679720568fa72624875e7a3b40dc73a44f.zip |
If not enough memory is installed, enforce swap partition creation (#498742).
Diffstat (limited to 'storage/__init__.py')
-rw-r--r-- | storage/__init__.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/storage/__init__.py b/storage/__init__.py index 34f01828c..557deece0 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -876,10 +876,16 @@ class Storage(object): errors.extend(self.anaconda.platform.checkBootRequest(boot)) if not swaps: - warnings.append(_("You have not specified a swap partition. " - "Although not strictly required in all cases, " - "it will significantly improve performance for " - "most installations.")) + if iutil.memInstalled() < isys.EARLY_SWAP_RAM: + errors.append(_("You have not specified a swap partition. " + "Due to the amount of memory present, a " + "swap partition is required to complete " + "installation.")) + else: + warnings.append(_("You have not specified a swap partition. " + "Although not strictly required in all cases, " + "it will significantly improve performance " + "for most installations.")) for (mountpoint, dev) in filesystems.items(): if mountpoint in mustbeonroot: |