/[smeserver]/rpms/anaconda/sme8/anaconda-11.1.2.113-smeserver.patch
ViewVC logotype

Contents of /rpms/anaconda/sme8/anaconda-11.1.2.113-smeserver.patch

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


Revision 1.8 - (show annotations) (download)
Tue Apr 14 14:36:31 2009 UTC (15 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +0 -0 lines
FILE REMOVED
CentOS 5.3 sources

1 --- anaconda-11.1.2.87/textw/progress_text.py.smeserver 2006-05-04 13:58:53.000000000 -0600
2 +++ anaconda-11.1.2.87/textw/progress_text.py 2007-12-20 13:44:30.000000000 -0700
3 @@ -108,8 +108,8 @@
4
5 currow = 0
6
7 - width = 47 + max (len (name), len (size), len (sum))
8 - self.name = Label(" " * 48)
9 + width = 60 + max (len (name), len (size), len (sum))
10 + self.name = Label(" " * 59)
11 self.size = Label(" ")
12 detail = Grid(2, 2)
13 detail.setField(Label(name), 0, 0, anchorLeft = 1)
14 --- anaconda-11.1.2.87/textw/timezone_text.py.smeserver 2006-08-16 12:56:48.000000000 -0600
15 +++ anaconda-11.1.2.87/textw/timezone_text.py 2007-12-20 13:53:29.000000000 -0700
16 @@ -37,8 +37,7 @@
17
18 def updateSysClock(self):
19 args = ["--hctosys"]
20 - if self.c.selected():
21 - args.append("--utc")
22 + args.append("--utc")
23
24 iutil.execWithRedirect("hwclock", args, searchPath=1)
25 self.g.setTimer(500)
26 @@ -83,14 +82,12 @@
27 self.l.setCurrent(default)
28 # self.l.setCallback(self.updateClock)
29
30 - self.c = Checkbox(_("System clock uses UTC"), isOn = asUtc)
31 # self.c.setCallback(self.updateSysClock)
32
33 self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone",
34 1, 5)
35 self.g.add(t, 0, 0)
36 # self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1)
37 - self.g.add(self.c, 0, 2, padding = (0, 1, 0, 1), anchorLeft = 1)
38 self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1))
39 self.g.add(bb, 0, 4, growx = 1)
40
41 @@ -118,7 +115,7 @@
42 break
43
44 screen.popWindow()
45 - anaconda.id.timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected())
46 + anaconda.id.timezone.setTimezoneInfo(self.l.current(), asUtc = 1)
47
48 return INSTALL_OK
49
50 --- anaconda-11.1.2.87/textw/upgrade_bootloader_text.py.sme 2006-05-04 13:58:53.000000000 -0600
51 +++ anaconda-11.1.2.87/textw/upgrade_bootloader_text.py 2008-03-31 13:13:42.000000000 -0600
52 @@ -44,75 +44,24 @@
53 else:
54 nobl = 1
55
56 - if self.type is not None and self.bootDev is not None:
57 - t = TextboxReflowed(53,
58 - _("The installer has detected the %s boot "
59 - "loader currently installed on %s.")
60 - % (self.type, self.bootDev))
61 -
62 - self.update_radio = blradio.add(_("Update boot loader configuration"),
63 - "update", update)
64 + if nobl == 1:
65 + self.dispatch.skipStep("bootloadersetup", skip = 1)
66 + self.dispatch.skipStep("bootloader", skip = 1)
67 + self.dispatch.skipStep("bootloaderadvanced", skip = 1)
68 + self.dispatch.skipStep("instbootloader", skip = 1)
69 + elif newbl == 1:
70 + self.dispatch.skipStep("bootloadersetup", skip = 0)
71 + self.dispatch.skipStep("bootloader", skip = 1)
72 + self.dispatch.skipStep("bootloaderadvanced", skip = 1)
73 + self.dispatch.skipStep("instbootloader", skip = 0)
74 + self.bl.doUpgradeOnly = 0
75 else:
76 - t = TextboxReflowed(53,
77 - _("The installer is unable to detect the boot loader "
78 - "currently in use on your system."))
79 -
80 - self.update_radio = blradio.add(_("Update boot loader configuration"),
81 - "update", update)
82 - self.update_radio.w.checkboxSetFlags(FLAG_DISABLED, FLAGS_SET)
83 -
84 - self.nobl_radio = blradio.add(_("Skip boot loader updating"),
85 - "nobl", nobl)
86 - self.newbl_radio = blradio.add(_("Create new boot loader "
87 - "configuration"),
88 - "newbl", newbl)
89 -
90 - buttons = ButtonBar(screen, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON])
91 -
92 - grid = GridFormHelp(screen, _("Upgrade Boot Loader Configuration"),
93 - "bl-upgrade", 1, 5)
94 -
95 - grid.add(t, 0, 0, (0,0,0,1))
96 - grid.add(self.update_radio, 0, 1, (0,0,0,0))
97 - grid.add(self.nobl_radio, 0, 2, (0,0,0,0))
98 - grid.add(self.newbl_radio, 0, 3, (0,0,0,1))
99 - grid.add(buttons, 0, 4, growx = 1)
100 -
101 -
102 - while 1:
103 - result = grid.run()
104 -
105 - button = buttons.buttonPressed(result)
106 -
107 - if button == TEXT_BACK_CHECK:
108 - screen.popWindow()
109 - return INSTALL_BACK
110 -
111 - if blradio.getSelection() == "nobl":
112 - self.dispatch.skipStep("bootloadersetup", skip = 1)
113 - self.dispatch.skipStep("bootloader", skip = 1)
114 - self.dispatch.skipStep("bootloaderadvanced", skip = 1)
115 - self.dispatch.skipStep("instbootloader", skip = 1)
116 - elif blradio.getSelection() == "newbl":
117 - self.dispatch.skipStep("bootloadersetup", skip = 0)
118 - self.dispatch.skipStep("bootloader", skip = 0)
119 - self.dispatch.skipStep("bootloaderadvanced", skip = 0)
120 - self.dispatch.skipStep("instbootloader", skip = 0)
121 - self.bl.doUpgradeOnly = 0
122 - else:
123 - self.dispatch.skipStep("bootloadersetup", skip = 0)
124 - self.dispatch.skipStep("bootloader", skip = 1)
125 - self.dispatch.skipStep("bootloaderadvanced", skip = 1)
126 - self.dispatch.skipStep("instbootloader", skip = 0)
127 - self.bl.doUpgradeOnly = 1
128 -
129 - if self.type == "GRUB":
130 - self.bl.useGrubVal = 1
131 - else:
132 - self.bl.useGrubVal = 0
133 - self.bl.setDevice(self.bootDev)
134 -
135 -
136 + self.dispatch.skipStep("bootloadersetup", skip = 0)
137 + self.dispatch.skipStep("bootloader", skip = 1)
138 + self.dispatch.skipStep("bootloaderadvanced", skip = 1)
139 + self.dispatch.skipStep("instbootloader", skip = 0)
140 + self.bl.doUpgradeOnly = 1
141 + self.bl.useGrubVal = 1
142 + self.bl.setDevice(self.bootDev)
143
144 - screen.popWindow()
145 - return INSTALL_OK
146 + return INSTALL_OK
147 --- anaconda-11.1.2.87/textw/upgrade_text.py.smeserver 2007-01-22 16:14:06.000000000 -0700
148 +++ anaconda-11.1.2.87/textw/upgrade_text.py 2007-12-20 13:59:27.000000000 -0700
149 @@ -20,8 +20,8 @@
150 from fsset import *
151 from flags import flags
152 from constants import *
153 -import upgradeclass
154 -UpgradeClass = upgradeclass.InstallClass
155 +import smeupgradeclass
156 +UpgradeClass = smeupgradeclass.InstallClass
157
158 from rhpl.translate import _
159 import rhpl
160 @@ -200,26 +200,19 @@
161 else:
162 scroll = 0
163 partList = []
164 - partList.append(_("Reinstall System"))
165 + partList.append(_("Erase ALL disks, and perform a fresh install"))
166
167 for (drive, fs, desc, label) in parts:
168 - if drive[:5] != "/dev/":
169 - devname = "/dev/" + drive
170 - else:
171 - devname = drive
172 - partList.append("%s (%s)" %(desc, drive))
173 + partList.append(_("Upgrade existing \"%s\" system") %(desc))
174
175 (button, choice) = ListboxChoiceWindow(screen, _("System to Upgrade"),
176 - _("One or more existing Linux installations "
177 - "have been found "
178 - "on your system.\n\nPlease choose one to upgrade, "
179 - "or select 'Reinstall System' to freshly install "
180 - "your system."), partList,
181 + _("Your system is upgradeable."), partList,
182 [ TEXT_OK_BUTTON,
183 TEXT_BACK_BUTTON ],
184 width = 55, scroll = scroll,
185 height = height,
186 - help = "upgraderoot")
187 + help = "upgraderoot",
188 + default = 1)
189
190 if button == TEXT_BACK_CHECK:
191 return INSTALL_BACK
192 --- anaconda-11.1.2.87/anaconda.smeserver 2007-08-07 14:45:51.000000000 -0600
193 +++ anaconda-11.1.2.87/anaconda 2007-12-20 13:01:05.000000000 -0700
194 @@ -763,6 +763,9 @@
195 import instdata
196 import floppy
197
198 + # we don't want to waste time probing
199 + opts.isHeadless = 1
200 +
201 if not opts.isHeadless:
202 try:
203 import xsetup
204 --- anaconda-11.1.2.87/bootloader.py.smeserver 2006-11-17 13:34:11.000000000 -0700
205 +++ anaconda-11.1.2.87/bootloader.py 2007-12-20 13:03:25.000000000 -0700
206 @@ -193,11 +193,6 @@
207 except bootloaderInfo.BootyNoKernelWarning:
208 if not justConfigFile:
209 w.pop()
210 - if anaconda.intf:
211 - anaconda.intf.messageWindow(_("Warning"),
212 - _("No kernel packages were installed on your "
213 - "system. Your boot loader configuration "
214 - "will not be changed."))
215
216 dosync()
217
218 --- anaconda-11.1.2.87/textw/confirm_text.py.smeserver 2008-04-16 03:34:50.000000000 -0600
219 +++ anaconda-11.1.2.87/textw/confirm_text.py 2008-10-08 11:32:19.000000000 -0600
220 @@ -19,6 +19,13 @@
221
222 class BeginInstallWindow:
223 def __call__ (self, screen, anaconda):
224 + rc = anaconda.intf.messageWindow(_("Warning"),
225 + _("All disks will be reformatted and any data will be lost. Proceed?"),
226 + type = "yesno", default = "no")
227 +
228 + if rc == 0:
229 + return INSTALL_BACK
230 +
231 rc = ButtonChoiceWindow (screen, _("Installation to begin"),
232 _("A complete log of your installation will be in "
233 "%s after rebooting your system. You "
234 --- anaconda-11.1.2.87/findpackageset.py.smeserver 2005-02-08 07:37:30.000000000 -0700
235 +++ anaconda-11.1.2.87/findpackageset.py 2007-12-20 13:05:57.000000000 -0700
236 @@ -108,21 +108,15 @@
237 # loop through packages and find ones which are a newer
238 # version than what we have
239 for ( name, arch ) in instDict.keys():
240 - if ( name, arch ) in availDict.keys():
241 - # Exact arch upgrade
242 - h = instDict[(name, arch)]
243 - pkg = availDict[(name,arch)]
244 - comparePackageForUpgrade(updDict, h, pkg)
245 - else:
246 - # See if we have a better arch than that installed
247 - if name in availNames.keys():
248 - bestarch = findBestArch(availNames[name])
249 - if not bestarch:
250 - continue
251 - if availDict.has_key((name,bestarch)):
252 - h = instDict[(name,arch)]
253 - pkg = availDict[(name,bestarch)]
254 - comparePackageForUpgrade(updDict, h, pkg)
255 + # See if we have a better arch than that installed
256 + if name in availNames.keys():
257 + bestarch = findBestArch(availNames[name])
258 + if not bestarch:
259 + continue
260 + if availDict.has_key((name,bestarch)):
261 + h = instDict[(name,arch)]
262 + pkg = availDict[(name,bestarch)]
263 + comparePackageForUpgrade(updDict, h, pkg)
264
265 # handle obsoletes
266 for pkg in hdlist:
267 --- anaconda-11.1.2.87/fsset.py.smeserver 2007-08-23 13:33:10.000000000 -0600
268 +++ anaconda-11.1.2.87/fsset.py 2007-12-20 13:25:42.000000000 -0700
269 @@ -1340,7 +1340,6 @@
270 cf = """
271 # mdadm.conf written out by anaconda
272 DEVICE partitions
273 -MAILADDR root
274 """
275 for ent in self.entries:
276 if ent.device.getName() != "RAIDDevice":
277 @@ -1480,6 +1479,7 @@
278
279 if bootDev.getName() == "RAIDDevice":
280 ret['boot'] = (bootDev.device, N_("RAID Device"))
281 + ret['mbr'] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
282 return ret
283
284 if iutil.getPPCMacGen() == "NewWorld":
285 @@ -1769,6 +1769,10 @@
286 entry.device.setupDevice(chroot, vgdevice = vg)
287 self.volumesCreated = 1
288
289 + def createBootRaid (self, chroot='/'):
290 + bootDev = self.getBootDev()
291 + if bootDev.getDevice().startswith('md'):
292 + bootDev.setupDevice(chroot)
293
294 def makeFilesystems (self, chroot='/'):
295 formatted = []
296 @@ -2312,11 +2316,20 @@
297 self.minor)
298
299 def raidTab (self, devPrefix='/dev'):
300 + if self.level == 1:
301 + nDisks = max(2, self.numDisks)
302 + elif self.level == 5:
303 + nDisks = max(3, self.numDisks)
304 + elif self.level == 6:
305 + nDisks = max(4, self.numDisks)
306 + else:
307 + nDisks = self.numDisks
308 +
309 entry = ""
310 entry = entry + "raiddev %s/%s\n" % (devPrefix,
311 self.device,)
312 entry = entry + "raid-level %d\n" % (self.level,)
313 - entry = entry + "nr-raid-disks %d\n" % (self.numDisks,)
314 + entry = entry + "nr-raid-disks %d\n" % (nDisks,)
315 entry = entry + "chunk-size %s\n" %(self.chunksize,)
316 entry = entry + "persistent-superblock 1\n"
317 entry = entry + "nr-spare-disks %d\n" % (self.spares,)
318 @@ -2326,6 +2339,10 @@
319 device)
320 entry = entry + " raid-disk %d\n" % (i,)
321 i = i + 1
322 + while i < nDisks:
323 + entry = entry + " device dev/null\n"
324 + entry = entry + " failed-disk %d\n" % (i,)
325 + i = i + 1
326 i = 0
327 for device in self.members[self.numDisks:]:
328 entry = entry + " device %s/%s\n" % (devPrefix,
329 @@ -2337,6 +2354,15 @@
330 def setupDevice (self, chroot="/", devPrefix='/dev'):
331 def devify(x):
332 return "/dev/%s" %(x,)
333 +
334 + if self.level == 1:
335 + nDisks = max(2, self.numDisks)
336 + elif self.level == 5:
337 + nDisks = max(3, self.numDisks)
338 + elif self.level == 6:
339 + nDisks = max(4, self.numDisks)
340 + else:
341 + nDisks = self.numDisks
342
343 node = "%s/%s" % (devPrefix, self.device)
344 isys.makeDevInode(self.device, node)
345 @@ -2350,12 +2376,18 @@
346 args = ["--create", "/dev/%s" %(self.device,),
347 "--run", "--chunk=%s" %(self.chunksize,),
348 "--level=%s" %(self.level,),
349 - "--raid-devices=%s" %(self.numDisks,)]
350 + "--raid-devices=%s" %(nDisks,)]
351
352 if self.spares > 0:
353 args.append("--spare-devices=%s" %(self.spares,),)
354
355 args.extend(map(devify, self.members))
356 +
357 + i = 0
358 + while self.numDisks + i < nDisks:
359 + args.append("missing")
360 + i = i + 1
361 +
362 log.info("going to run: %s" %(["/usr/sbin/mdadm"] + args,))
363 iutil.execWithRedirect ("/usr/sbin/mdadm", args,
364 stderr="/dev/tty5", stdout="/dev/tty5")
365 --- anaconda-11.1.2.87/instdata.py.smeserver 2007-06-27 12:30:49.000000000 -0600
366 +++ anaconda-11.1.2.87/instdata.py 2007-12-20 13:28:15.000000000 -0700
367 @@ -145,8 +145,7 @@
368 def write(self):
369 self.instLanguage.write (self.anaconda.rootPath)
370
371 - if not self.isHeadless:
372 - self.keyboard.write (self.anaconda.rootPath)
373 + self.keyboard.write (self.anaconda.rootPath)
374
375 self.timezone.write (self.anaconda.rootPath)
376
377 @@ -264,8 +263,8 @@
378 f.write("key %s\n" %(self.instClass.installkey,))
379
380 self.instLanguage.writeKS(f)
381 + self.keyboard.writeKS(f)
382 if not self.isHeadless:
383 - self.keyboard.writeKS(f)
384 self.xsetup.writeKS(f, self.desktop, self.ksdata)
385 self.network.writeKS(f)
386 self.zfcp.writeKS(f)
387 --- anaconda-11.1.2.87/kickstart.py.smeserver 2007-06-18 08:30:03.000000000 -0600
388 +++ anaconda-11.1.2.87/kickstart.py 2007-12-20 13:38:55.000000000 -0700
389 @@ -764,6 +764,15 @@
390 w.pop()
391
392 def postAction(self, anaconda, serial):
393 + win = anaconda.intf.waitWindow(_("Post Install Script"),
394 + _("The post installation script is running..."))
395 +
396 + script = ( "#!/bin/sh\nmkdir -p /var/lib/dhcp; /sbin/syslogd ; sleep 2; /sbin/e-smith/signal-event post-install\n" )
397 + s = Script(script, interp="/bin/sh", inChroot=1)
398 + log.info("%s", s)
399 + s.run(anaconda.rootPath, serial)
400 + win.pop()
401 +
402 postScripts = filter (lambda s: s.type == KS_SCRIPT_POST,
403 self.ksdata.scripts)
404
405 --- anaconda-11.1.2.87/lang-table.smeserver 2006-12-04 13:31:57.000000000 -0700
406 +++ anaconda-11.1.2.87/lang-table 2008-03-18 09:38:10.000000000 -0600
407 @@ -1,54 +1,20 @@
408 -Afrikaans af latarcyrheb-sun16 af_ZA.UTF-8 us Africa/Johannesburg
409 -Arabic ar latarcyrheb-sun16 ar_SA.UTF-8 us Asia/Riyadh
410 -Assamese as none as_IN.UTF-8 us Asia/Calcutta
411 -Bengali bn none bn_BD.UTF-8 us Asia/Dhaka
412 -Bengali(India) bn none bn_IN.UTF-8 us Asia/Calcutta
413 Bulgarian bg latarcyrheb-sun16 bg_BG.UTF-8 bg Europe/Sofia
414 -Catalan ca latarcyrheb-sun16 ca_ES.UTF-8 es Europe/Madrid
415 Chinese(Simplified) zh_CN none zh_CN.UTF-8 us Asia/Shanghai
416 -Chinese(Traditional) zh_TW none zh_TW.UTF-8 us Asia/Taipei
417 -Croatian hr latarcyrheb-sun16 hr_HR.UTF-8 croat Europe/Zagreb
418 -Czech cs latarcyrheb-sun16 cs_CZ.UTF-8 cz-lat2 Europe/Prague
419 Danish da latarcyrheb-sun16 da_DK.UTF-8 dk Europe/Copenhagen
420 Dutch nl latarcyrheb-sun16 nl_NL.UTF-8 nl Europe/Amsterdam
421 English en latarcyrheb-sun16 en_US.UTF-8 us America/New_York
422 -Estonian et latarcyrheb-sun16 et_EE.UTF-8 et Europe/Tallinn
423 -Finnish fi latarcyrheb-sun16 fi_FI.UTF-8 fi Europe/Helsinki
424 French fr latarcyrheb-sun16 fr_FR.UTF-8 fr-latin1 Europe/Paris
425 German de latarcyrheb-sun16 de_DE.UTF-8 de-latin1-nodeadkeys Europe/Berlin
426 Greek el iso07u-16 el_GR.UTF-8 gr Europe/Athens
427 -Gujarati gu none gu_IN.UTF-8 us Asia/Calcutta
428 -Hindi hi none hi_IN.UTF-8 us Asia/Calcutta
429 Hungarian hu latarcyrheb-sun16 hu_HU.UTF-8 hu Europe/Budapest
430 -Icelandic is latarcyrheb-sun16 is_IS.UTF-8 is-latin1 Atlantic/Reykjavik
431 Indonesian id latarcryheb-sun16 id_ID.UTF-8 us Asia/Jakarta
432 Italian it latarcyrheb-sun16 it_IT.UTF-8 it Europe/Rome
433 Japanese ja none ja_JP.UTF-8 jp106 Asia/Tokyo
434 -Kannada kn none kn_IN.UTF-8 us Asia/Calcutta
435 -Korean ko none ko_KR.UTF-8 us Asia/Seoul
436 -Macedonian mk latarcyrheb-sun16 mk_MK.UTF-8 mk Europe/Skopje
437 -Malay ms latarcyrheb-sun16 ms_MY.UTF-8 us Asia/Kuala_Lumpur
438 -Malayalam ml none ml_IN.UTF-8 us Asia/Calcutta
439 -Marathi mr none mr_IN.UTF-8 us Asia/Calcutta
440 Norwegian nb latarcyrheb-sun16 nb_NO.UTF-8 no Europe/Oslo
441 -Northern Sotho nso latarcyrheb-sun16 nso_ZA.UTF-8 us Africa/Johannesburg
442 -Oriya or none or_IN.UTF-8 us Asia/Calcutta
443 -Polish pl latarcyrheb-sun16 pl_PL.UTF-8 pl2 Europe/Warsaw
444 Portuguese pt latarcyrheb-sun16 pt_PT.UTF-8 pt-latin1 Europe/Lisbon
445 Portuguese(Brazilian) pt_BR latarcyrheb-sun16 pt_BR.UTF-8 br-abnt2 America/Sao_Paulo
446 -Punjabi pa none pa_IN.UTF-8 us Asia/Calcutta
447 Russian ru latarcyrheb-sun16 ru_RU.UTF-8 ru Europe/Moscow
448 -Serbian sr latarcyrheb-sun16 sr_CS.UTF-8 sr-cy Europe/Belgrade
449 -Serbian(Latin) sr@Latn latarcyrheb-sun16 sr_CS.UTF-8@Latn sr-cy Europe/Belgrade
450 -Sinhala si none si_LK.UTF-8 us Asia/Colombo
451 -Slovak sk latarcyrheb-sun16 sk_SK.UTF-8 sk-qwerty Europe/Bratislava
452 Slovenian sl latarcyrheb-sun16 sl_SI.UTF-8 slovene Europe/Ljubljana
453 Spanish es latarcyrheb-sun16 es_ES.UTF-8 es Europe/Madrid
454 Swedish sv latarcyrheb-sun16 sv_SE.UTF-8 sv-latin1 Europe/Stockholm
455 -Tamil ta none ta_IN.UTF-8 us Asia/Calcutta
456 -Telugu te none te_IN.UTF-8 us Asia/Calcutta
457 Turkish tr latarcyrheb-sun16 tr_TR.UTF-8 trq Europe/Istanbul
458 -Ukrainian uk latarcyrheb-sun16 uk_UA.UTF-8 ua-utf Europe/Kiev
459 -Vietnamese vi latarcyrheb-sun16 vi_VN.UTF-8 us Asia/Saigon
460 -Welsh cy latarcyrheb-sun16 cy_GB.UTF-8 uk Europe/London
461 -Zulu zu latarcyrheb-sun16 zu_ZA.UTF-8 us Africa/Johannesburg
462 --- anaconda-11.1.2.87/language.py.smeserver 2006-10-10 11:18:09.000000000 -0600
463 +++ anaconda-11.1.2.87/language.py 2008-03-18 09:43:03.000000000 -0600
464 @@ -57,7 +57,9 @@
465 self.current = "en_US.UTF-8"
466
467 # English name -> native name mapping
468 - search = ('lang-names', '/usr/lib/anaconda/lang-names')
469 + search = ('lang-names', '/tmp/updates/lang-names',
470 + '/mnt/source/RHupdates/lang-names',
471 + '/usr/lib/anaconda/lang-names')
472 for path in search:
473 if os.access(path, os.R_OK):
474 f = open(path, 'r')
475 @@ -109,6 +109,8 @@
476
477 def getNickByName (self, name):
478 for k in self.localeInfo.keys():
479 + if k == 'C':
480 + continue
481 row = self.localeInfo[k]
482 if row[0] == name:
483 return k
484 --- anaconda-11.1.2.87/packages.py.smeserver 2007-12-20 13:41:11.000000000 -0700
485 +++ anaconda-11.1.2.87/packages.py 2007-12-20 13:40:41.000000000 -0700
486 @@ -146,6 +146,7 @@
487 if not anaconda.id.fsset.isActive():
488 anaconda.id.diskset.savePartitions ()
489 anaconda.id.fsset.checkBadblocks(anaconda.rootPath)
490 + anaconda.id.fsset.createBootRaid(anaconda.rootPath)
491 if not anaconda.id.fsset.volumesCreated:
492 try:
493 anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath)
494 --- anaconda-11.1.2.87/partedUtils.py.smeserver 2007-07-12 10:16:05.000000000 -0600
495 +++ anaconda-11.1.2.87/partedUtils.py 2007-12-20 13:43:33.000000000 -0700
496 @@ -507,8 +507,8 @@
497 return None
498
499 def getReleaseString(mountpoint):
500 - if os.access(mountpoint + "/etc/redhat-release", os.R_OK):
501 - f = open(mountpoint + "/etc/redhat-release", "r")
502 + if os.access(mountpoint + "/etc/e-smith-release", os.R_OK):
503 + f = open(mountpoint + "/etc/e-smith-release", "r")
504 try:
505 lines = f.readlines()
506 except IOError:
507 @@ -550,6 +550,7 @@
508 return 1
509
510 productUpgrades = {
511 + "SME Server": ("Mitel Networks", "SME Server", "e-smith server", ),
512 "Red Hat Enterprise Linux AS": ("Red Hat Linux Advanced Server", ),
513 "Red Hat Enterprise Linux WS": ("Red Hat Linux Advanced Workstation",),
514 # FIXME: this probably shouldn't be in a release...
515 --- anaconda-11.1.2.87/raid.py.smeserver 2006-10-02 09:01:18.000000000 -0600
516 +++ anaconda-11.1.2.87/raid.py 2007-12-20 13:47:36.000000000 -0700
517 @@ -114,7 +114,17 @@
518 raidList = []
519 for key in raidSets.keys():
520 (level, totalDisks, mdMinor, devices) = raidSets[key]
521 - if len(devices) < totalDisks:
522 + if len(devices) == totalDisks - 1 and level in (1, 5, 6):
523 + log.info("missing components of raid device md%d. The "
524 + "raid device needs %d drive(s) and only %d (was/were) found. "
525 + "This raid device will be started in degraded mode.", mdMinor,
526 + totalDisks, len(devices))
527 + elif len(devices) == totalDisks - 2 and level == 6:
528 + log.info("missing components of raid device md%d. The "
529 + "raid device needs %d drive(s) and only %d (was/were) found. "
530 + "This raid device will be started in degraded mode.", mdMinor,
531 + totalDisks, len(devices))
532 + elif len(devices) < totalDisks:
533 log.warning("missing components of raid device md%d. The "
534 "raid device needs %d drive(s) and only %d (was/were) "
535 "found. This raid device will not be started.", mdMinor,
536 @@ -168,11 +178,11 @@
537 if isRaid0(raidlevel):
538 return 2
539 elif isRaid1(raidlevel):
540 - return 2
541 + return 1
542 elif isRaid5(raidlevel):
543 - return 3
544 + return 2
545 elif isRaid6(raidlevel):
546 - return 4
547 + return 2
548 else:
549 raise ValueError, "invalid raidlevel in get_raid_min_members"
550
551 --- anaconda-11.1.2.87/text.py.smeserver 2007-03-23 15:24:34.000000000 -0600
552 +++ anaconda-11.1.2.87/text.py 2007-12-20 13:50:39.000000000 -0700
553 @@ -583,7 +583,8 @@
554 "from here. You will have to try "
555 "again."),
556 buttons=[_("OK")])
557 - anaconda.dispatch.gotoPrev()
558 + else:
559 + anaconda.dispatch.gotoPrev()
560 else:
561 anaconda.dispatch.gotoNext()
562
563 --- anaconda-11.1.2.87/upgrade.py.smeserver 2007-01-22 16:14:06.000000000 -0700
564 +++ anaconda-11.1.2.87/upgrade.py 2008-03-18 09:10:12.000000000 -0600
565 @@ -113,7 +113,7 @@
566
567 if anaconda.id.rootParts is not None and len(anaconda.id.rootParts) > 0:
568 anaconda.dispatch.skipStep("findinstall", skip = 0)
569 - if productName.find("Red Hat Enterprise Linux") == -1:
570 + if productName.find("SME Server") == -1:
571 anaconda.dispatch.skipStep("installtype", skip = 1)
572 else:
573 anaconda.dispatch.skipStep("findinstall", skip = 1)
574 --- anaconda-11.1.2.87/yuminstall.py.smeserver 2007-09-11 11:51:21.000000000 -0600
575 +++ anaconda-11.1.2.87/yuminstall.py 2008-03-17 08:01:27.000000000 -0600
576 @@ -1081,7 +1081,8 @@
577
578 if foundModule == 1:
579 for (n, arch, tag) in kernelVersions:
580 - recreateInitrd(n, anaconda.rootPath)
581 + if os.access("/boot/System.map-%s" %(n,), os.X_OK):
582 + recreateInitrd(n, anaconda.rootPath)
583
584 def selectBestKernel(self, anaconda):
585 """Find the best kernel package which is available and select it."""
586 @@ -1651,10 +1652,10 @@
587 # Figure out current version for upgrade nag and for determining weird
588 # upgrade cases
589 supportedUpgradeVersion = -1
590 - for pkgtup in self.ayum.rpmdb.whatProvides('redhat-release', None, None):
591 + for pkgtup in self.ayum.rpmdb.whatProvides('e-smith-release', None, None):
592 n, a, e, v, r = pkgtup
593 if supportedUpgradeVersion <= 0:
594 - val = rpmUtils.miscutils.compareEVR((None, '3', '1'),
595 + val = rpmUtils.miscutils.compareEVR(('26', '7.0', '01'),
596 (e, v,r))
597 if val > 0:
598 supportedUpgradeVersion = 0
599 @@ -1662,9 +1663,6 @@
600 supportedUpgradeVersion = 1
601 break
602
603 - if productName.find("Red Hat Enterprise Linux") == -1:
604 - supportedUpgradeVersion = 1
605 -
606 if supportedUpgradeVersion == 0:
607 rc = anaconda.intf.messageWindow(_("Warning"),
608 _("You appear to be upgrading from a system "
609 @@ -1678,7 +1676,7 @@
610 try:
611 os.unlink("%s/var/lib/rpm/%s" %(anaconda.rootPath, rpmfile))
612 except:
613 - log.info("error %s removing file: /var/lib/rpm/%s" %(e,rpmfile))
614 + #log.info("error %s removing file: /var/lib/rpm/%s" %(e,rpmfile))
615 pass
616 sys.exit(0)
617
618 @@ -1727,7 +1725,8 @@
619 # to the old method.
620 if len(self._installedDriverModules) > 0 and len(self._installedDriverModules) == len(anaconda.id.extraModules):
621 for (n, arch, tag) in self.kernelVersionList():
622 - recreateInitrd(n, anaconda.rootPath)
623 + if os.access("/boot/System.map-%s" %(n,), os.X_OK):
624 + recreateInitrd(n, anaconda.rootPath)
625 else:
626 modulesList = filter(lambda m: m not in self._installedDriverModules, anaconda.id.extraModules)
627 self.copyExtraModules(anaconda, modulesList)

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