I've also get with this problem few month ago and this is what i've done:
I've created my own server.py in the
/usr/src/redhat/SOURCES/installclasses/ path
def setInstallData(self, id):
BaseInstallClass.setInstallData(self, id)
BaseInstallClass.setDefaultPartitioning(self, id.partitions,
CLEARPART_TYPE_ALL, 1,
[ ("/", "ext3", 1024,
2048, 0, 1),
("/usr", "ext3", 2048,
2048, 1, 1),
("/tmp", "ext3", 1024,
1024, 1, 1),
("/var", "ext3", 1024,
None, 1, 1),
("/home", "ext3",
4096, 4096, 1, 1) ] )
Then I've made a patch for installclass.py script wich is :
--- installclass.py 2005-07-13 19:02:21.760342504 +0200
+++ installclass.py.modif 2005-07-13 19:02:41.222383824 +0200
@@ -528,20 +528,25 @@
id.setMouse(mouse)
def setDefaultPartitioning(self, partitions, clear =
CLEARPART_TYPE_LINUX,
- doClear = 1):
- autorequests = [ ("/", None, 1024, None, 1, 1, 1) ]
-
- bootreq = getAutopartitionBoot()
- if bootreq:
- autorequests.extend(bootreq)
+ # doClear = 1):
+ #autorequests = [ ("/", None, 1024, None, 1, 1, 1) ]
+ doClear = 1,
+ #autorequests = [ ("/", None, 1024,
None, 1, 1, 1) ] ):
# Difference for LVM or not is between the line below and the line under
with the 1,1,1 (with LVM) or 1,1 (without LVM)
+ autorequests = [ ("/", None, 1024, None,
1, 1) ] ):
+
+ #bootreq = getAutopartitionBoot()
+ #if bootreq:
+ # autorequests.extend(bootreq)
(minswap, maxswap) = iutil.swapSuggestion()
- autorequests.append((None, "swap", minswap, maxswap, 1, 1, 1))
+ autorequests.append((None, "swap", minswap, maxswap, 1, 1))
+ #autorequests.append((None, "swap", minswap, maxswap, 1, 1, 0))
if doClear:
partitions.autoClearPartType = clear
partitions.autoClearPartDrives = []
- partitions.autoPartitionRequests =
autoCreateLVMPartitionRequests(autorequests)
+ #partitions.autoPartitionRequests =
autoCreateLVMPartitionRequests(autorequests)
+ partitions.autoPartitionRequests =
autoCreatePartitionRequests(autorequests)
def setInstallData(self, id, intf = None):
Hope this could help you
Vincent