/[smeserver]/cdrom.image/sme8/updates/installclasses/smeinstallclass.py
ViewVC logotype

Diff of /cdrom.image/sme8/updates/installclasses/smeinstallclass.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.7 by slords, Thu Oct 28 18:23:03 2010 UTC Revision 1.9 by slords, Sat Jun 11 23:00:46 2011 UTC
# Line 184  class InstallClass(BaseInstallClass): Line 184  class InstallClass(BaseInstallClass):
184              else:              else:
185                  log.warning("Installing without using RAID")                  log.warning("Installing without using RAID")
186    
187                fstype = "ext3"
188                if flags.cmdline.has_key("ext4"):
189                    fstype = "ext4"
190    
191              (swapMin, swapMax) = iutil.swapSuggestion()              (swapMin, swapMax) = iutil.swapSuggestion()
192              if level >= 1:              if level >= 1:
193                  raid1 = []                  raid1 = []
# Line 241  class InstallClass(BaseInstallClass): Line 245  class InstallClass(BaseInstallClass):
245                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("swap"),                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("swap"),
246                              raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares))                              raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares))
247    
248                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet(fstype),
249                              mountpoint="/", raidmembers=raid3, raidlevel="RAID"+str(level), raidminor=3, format=1,                              mountpoint="/", raidmembers=raid3, raidlevel="RAID"+str(level), raidminor=3, format=1,
250                              raidspares=spares))                              raidspares=spares))
251    
# Line 260  class InstallClass(BaseInstallClass): Line 264  class InstallClass(BaseInstallClass):
264                          request.uniqueID = 200                          request.uniqueID = 200
265                          partitions.autoPartitionRequests.append(request)                          partitions.autoPartitionRequests.append(request)
266                      else:                      else:
267                          partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext4"),                          partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet(fstype),
268                                  mountpoint="/", drive=[drive], size=1536, grow=1, primary=1, format=1))                                  mountpoint="/", drive=[drive], size=1536, grow=1, primary=1, format=1))
269    
270                          partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("swap"),                          partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("swap"),
# Line 272  class InstallClass(BaseInstallClass): Line 276  class InstallClass(BaseInstallClass):
276                  partitions.autoPartitionRequests.append(request)                  partitions.autoPartitionRequests.append(request)
277    
278                  if not flags.cmdline.has_key("multipart"):                  if not flags.cmdline.has_key("multipart"):
279                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet(fstype),
280                              mountpoint="/", size=1536, volgroup=201, lvname="root", grow=1, format=1))                              mountpoint="/", size=1536, volgroup=201, lvname="root", grow=1, format=1))
281    
282                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"),
283                              size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1))                              size=swapMin, maxSizeMB=swapMax, volgroup=201, lvname="swap", grow=1, format=1))
284                  else:                  else:
285                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet(fstype),
286                              mountpoint="/", size=2048, maxSizeMB=4096, volgroup=201, lvname="root", grow=1, format=1))                              mountpoint="/", size=2048, maxSizeMB=4096, volgroup=201, lvname="root", grow=1, format=1))
287    
288                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet(fstype),
289                              mountpoint="/var", size=1024, maxSizeMB=4096, volgroup=201, lvname="var", grow=1, format=1))                              mountpoint="/var", size=1024, maxSizeMB=4096, volgroup=201, lvname="var", grow=1, format=1))
290    
291                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet(fstype),
292                              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))
293    
294                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("ext4"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet(fstype),
295                              mountpoint="/tmp", size=1024, maxSizeMB=4096, volgroup=201, lvname="tmp", grow=1, format=1))                              mountpoint="/tmp", size=1024, maxSizeMB=4096, volgroup=201, lvname="tmp", grow=1, format=1))
296    
297                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"),                      partitions.autoPartitionRequests.append(partRequests.LogicalVolumeRequestSpec(fileSystemTypeGet("swap"),


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed