/[smeserver]/cdrom.image/sme7/product/installclasses/smeinstallclass.py
ViewVC logotype

Diff of /cdrom.image/sme7/product/installclasses/smeinstallclass.py

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

Revision 1.2 by slords, Sun Jun 7 02:30:05 2009 UTC Revision 1.3 by slords, Mon Jun 8 14:43:06 2009 UTC
# Line 13  import partedUtils Line 13  import partedUtils
13    
14  class Script:  class Script:
15      def __repr__(self):      def __repr__(self):
16          str = ("(s: '%s' i: %s c: %d)") %  \          str = ("(s: '%s' i: %s c: %d)") % \
17              (self.script, self.interp, self.inChroot)              (self.script, self.interp, self.inChroot)
18          return string.replace(str, "\n", "|")          return string.replace(str, "\n", "|")
19    
# Line 61  class InstallClass(BaseInstallClass): Line 61  class InstallClass(BaseInstallClass):
61                       "will be repartitioned and formated.")                       "will be repartitioned and formated.")
62    
63      sortPriority = 1      sortPriority = 1
   
     cmdline = {}  
64      doPartition = False      doPartition = False
65        cmdline = {}
66    
67      parentClass = ( _("Install SME Server"), "smeserver.png" )      parentClass = ( _("Install SME Server"), "smeserver.png" )
68    
# Line 133  class InstallClass(BaseInstallClass): Line 132  class InstallClass(BaseInstallClass):
132                   "complete"                   "complete"
133                  )                  )
134    
   
135          # 'partition' can be used on the command line to force          # 'partition' can be used on the command line to force
136          # verification of partitions.  useful in some cases...          # verification of partitions.  useful in some cases...
137          if self.doPartition or self.cmdline.has_key("partition"):          if self.doPartition or self.cmdline.has_key("partition"):
# Line 244  class InstallClass(BaseInstallClass): Line 242  class InstallClass(BaseInstallClass):
242                              raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares))                              raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares))
243    
244                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("ext3"),                      partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("ext3"),
245                              mountpoint="/", raidmembers=raid3,  raidlevel="RAID"+str(level), raidminor=3, format=1,                              mountpoint="/", raidmembers=raid3, raidlevel="RAID"+str(level), raidminor=3, format=1,
246                              raidspares=spares))                              raidspares=spares))
247    
248              else:              else:
249                  for drive in drives:                  for drive in drives:
250                      partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"),                      partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"),
251                          mountpoint="/boot", drive=[drive], size=100, primary=1, format=1))                              mountpoint="/boot", drive=[drive], size=100, primary=1, format=1))
252    
253                      if not self.cmdline.has_key("nolvm"):                      if not self.cmdline.has_key("nolvm"):
254                          request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"),                          request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"),


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