/[smeserver]/cdrom.image/sme9/product/installclasses/server.py
ViewVC logotype

Diff of /cdrom.image/sme9/product/installclasses/server.py

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

Revision 1.3 by charliebrady, Tue Jul 30 21:25:43 2013 UTC Revision 1.9 by wellsi, Tue Mar 18 14:54:09 2014 UTC
# Line 93  class InstallClass(BaseInstallClass): Line 93  class InstallClass(BaseInstallClass):
93      sortPriority = 90000      sortPriority = 90000
94      hidden = 0      hidden = 0
95    
96        bootloaderTimeoutDefault = 5
97      tasks = [(N_("Basic Server"),      tasks = [(N_("Basic Server"),
98                ["base", "core"]),                ["base", "core"]),
99               (N_("Minimal"),               (N_("Minimal"),
# Line 122  class InstallClass(BaseInstallClass): Line 123  class InstallClass(BaseInstallClass):
123    
124      def setSteps(self, anaconda):      def setSteps(self, anaconda):
125          BaseInstallClass.setSteps(self, anaconda)          BaseInstallClass.setSteps(self, anaconda)
126          #anaconda.dispatch.skipStep("welcome")          anaconda.dispatch.skipStep("welcome")
127          #anaconda.dispatch.skipStep("filtertype")          #anaconda.dispatch.skipStep("filtertype")
128          anaconda.dispatch.skipStep("network")          anaconda.dispatch.skipStep("network")
129          anaconda.dispatch.skipStep("accounts")          anaconda.dispatch.skipStep("accounts")
# Line 143  class InstallClass(BaseInstallClass): Line 144  class InstallClass(BaseInstallClass):
144    
145          useRAID_flag = not flags.cmdline.has_key("noraid")          useRAID_flag = not flags.cmdline.has_key("noraid")
146    
147          fstype = "ext3"          fstype = "ext4"
148          if flags.cmdline.has_key("ext4"):          if flags.cmdline.has_key("ext3"):
149              fstype = "ext4"              fstype = "ext3"
150    
151          # /boot          # /boot
152          # Manually specify fstype = ext3/ext4 and size = 100 MB          # Manually specify fstype = ext3/ext4 and size = 250 MB
153          # (Platform default is fstype ext4 and size = 500 MB)          # (Platform default is fstype ext4 and size = 500 MB)
154    
155          autorequests.append(PartSpec(mountpoint="/boot", fstype=fstype, size=100, useRAID=useRAID_flag,          autorequests.append(PartSpec(mountpoint="/boot", fstype=fstype, size=250, useRAID=useRAID_flag,
156                              weight=platform.weight(mountpoint="/boot")))                              weight=platform.weight(mountpoint="/boot")))
157    
158          # /          # /
# Line 177  class InstallClass(BaseInstallClass): Line 178  class InstallClass(BaseInstallClass):
178                                 anaconda.platform)                                 anaconda.platform)
179    
180      def productMatches(self, oldprod):      def productMatches(self, oldprod):
181            log.info("oldprod %s productName %s" % (oldprod, productName));
182          if oldprod is None:          if oldprod is None:
183              return False              return False
184    
185          if oldprod.startswith(productName):          if oldprod.startswith(productName):
186              return True              return True
187    
188            productUpgrades = {
189                "SME Server": ("Mitel Networks", "SME Server", "e-smith server", ),
190            }
191    
192            if productUpgrades.has_key(productName):
193                acceptable = productUpgrades[productName]
194            else:
195                acceptable = ()
196    
197            for p in acceptable:
198                if oldprod.startswith(p):
199                    return True
200    
201          return False          return False
202    
203        def versionMatches(self, oldver):
204            log.info("oldver %s productVersion %s" % (oldver, productVersion));
205            return True;
206    
207      def getBackend(self):      def getBackend(self):
208          return yuminstall.YumBackend          return yuminstall.YumBackend
209    


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