219 |
partitions.autoPartitionRequests.append(request) |
partitions.autoPartitionRequests.append(request) |
220 |
|
|
221 |
if not self.cmdline.has_key("nolvm"): |
if not self.cmdline.has_key("nolvm"): |
222 |
request = partRequests.PartitionSpec(fileSystemTypeGet("software RAID"), |
if not self.cmdline.has_key("multipart"): |
223 |
size=(swapMin+4096)/(len(drives)-spares-max(0,level-4)), |
request = partRequests.PartitionSpec(fileSystemTypeGet("software RAID"), |
224 |
drive=[drive], primary=1, grow=1, format=1) |
size=(swapMin+1536)/(len(drives)-spares-max(0,level-4)), |
225 |
|
drive=[drive], primary=1, grow=1, format=1) |
226 |
|
else: |
227 |
|
request = partRequests.PartitionSpec(fileSystemTypeGet("software RAID"), |
228 |
|
size=(swapMin+5120)/(len(drives)-spares-max(0,level-4)), |
229 |
|
drive=[drive], primary=1, grow=1, format=1) |
230 |
request.uniqueID = uniqueID + 50 |
request.uniqueID = uniqueID + 50 |
231 |
raid2.append(uniqueID + 50) |
raid2.append(uniqueID + 50) |
232 |
partitions.autoPartitionRequests.append(request) |
partitions.autoPartitionRequests.append(request) |
239 |
partitions.autoPartitionRequests.append(request) |
partitions.autoPartitionRequests.append(request) |
240 |
|
|
241 |
request = partRequests.PartitionSpec(fileSystemTypeGet("software RAID"), |
request = partRequests.PartitionSpec(fileSystemTypeGet("software RAID"), |
242 |
size=1500/(len(drives)-spares-max(0,level-4)), |
size=1536/(len(drives)-spares-max(0,level-4)), |
243 |
drive=[drive], grow=1, primary=1, format=1) |
drive=[drive], grow=1, primary=1, format=1) |
244 |
request.uniqueID = uniqueID + 60 |
request.uniqueID = uniqueID + 60 |
245 |
raid3.append(uniqueID + 60) |
raid3.append(uniqueID + 60) |
271 |
mountpoint="/boot", drive=[drive], size=100, primary=1, format=1)) |
mountpoint="/boot", drive=[drive], size=100, primary=1, format=1)) |
272 |
|
|
273 |
if not self.cmdline.has_key("nolvm"): |
if not self.cmdline.has_key("nolvm"): |
274 |
request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"), |
if not self.cmdline.has_key("multipart"): |
275 |
drive=[drive], size=swapMin+4096, grow=1, primary=1, format=1) |
request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"), |
276 |
|
drive=[drive], size=swapMin+1536, grow=1, primary=1, format=1) |
277 |
|
else: |
278 |
|
request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"), |
279 |
|
drive=[drive], size=swapMin+5120, grow=1, primary=1, format=1) |
280 |
request.uniqueID = 200 |
request.uniqueID = 200 |
281 |
partitions.autoPartitionRequests.append(request) |
partitions.autoPartitionRequests.append(request) |
282 |
else: |
else: |
283 |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"), |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"), |
284 |
mountpoint="/", drive=[drive], size=4096, grow=1, primary=1, format=1)) |
mountpoint="/", drive=[drive], size=1536, grow=1, primary=1, format=1)) |
285 |
|
|
286 |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("swap"), |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("swap"), |
287 |
drive=[drive], size=swapMin, maxSizeMB=swapMax, grow=1, primary=1, format=1)) |
drive=[drive], size=swapMin, maxSizeMB=swapMax, grow=1, primary=1, format=1)) |
293 |
|
|
294 |
if not self.cmdline.has_key("multipart"): |
if not self.cmdline.has_key("multipart"): |
295 |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext3"), |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext3"), |
296 |
mountpoint="/", size=1300, volgroup=201, lvname="root", grow=1, format=1)) |
mountpoint="/", size=1536, volgroup=201, lvname="root", grow=1, format=1)) |
297 |
|
|
298 |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"), |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"), |
299 |
size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1)) |
size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1)) |
308 |
mountpoint="/home/e-smith/files", size=1024, maxSizeMB=8192, volgroup=201, lvname="files", grow=1, format=1)) |
mountpoint="/home/e-smith/files", size=1024, maxSizeMB=8192, volgroup=201, lvname="files", grow=1, format=1)) |
309 |
|
|
310 |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext3"), |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext3"), |
311 |
mountpoint="/tmp", size=512, maxSizeMB=4096, volgroup=201, lvname="tmp", grow=1, format=1)) |
mountpoint="/tmp", size=1024, maxSizeMB=4096, volgroup=201, lvname="tmp", grow=1, format=1)) |
312 |
|
|
313 |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"), |
partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"), |
314 |
size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1)) |
size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1)) |