summaryrefslogtreecommitdiffstats
path: root/installclasses/workstation.py
diff options
context:
space:
mode:
Diffstat (limited to 'installclasses/workstation.py')
-rw-r--r--installclasses/workstation.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/installclasses/workstation.py b/installclasses/workstation.py
index 707983bd8..87e8f0f5c 100644
--- a/installclasses/workstation.py
+++ b/installclasses/workstation.py
@@ -2,6 +2,7 @@ from installclass import BaseInstallClass
from installclass import FSEDIT_CLEAR_LINUX
from translate import N_
import os
+import iutil
class InstallClass(BaseInstallClass):
name = N_("Workstation")
@@ -23,9 +24,14 @@ class InstallClass(BaseInstallClass):
"Games" ]
if os.uname ()[4] != 'sparc64':
- self.addNewPartition('/boot', (16, -1, 0), (None,-1,0), (0,0))
- self.addNewPartition('/', (700, -1, 1), (None, -1, 0), (0,0))
- self.addNewPartition('swap', (64, -1, 0), (None, -1, 0), (0,0))
+ self.addNewPartition('/boot', (32, -1, 0), (None,-1,0), (0,0))
+ self.addNewPartition('/', (1100, -1, 1), (None, -1, 0), (0,0))
self.setClearParts(FSEDIT_CLEAR_LINUX,
warningText = N_("You are about to erase any preexisting Linux "
"installations on your system."))
+
+
+ # 2.4 kernel requires more swap, so base amount we try to get
+ # on amount of memory
+ (minswap, maxswap) = iutil.swapSuggestion()
+ self.addNewPartition('swap', (minswap, maxswap, 1), (None, -1, 0), (0,0))