/[smeserver]/rpms/anaconda/sme8/0015-Determine-upgradability-of-SME-server.patch
ViewVC logotype

Annotation of /rpms/anaconda/sme8/0015-Determine-upgradability-of-SME-server.patch

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


Revision 1.9 - (hide annotations) (download)
Sun Nov 10 06:00:41 2013 UTC (11 years ago) by wellsi
Branch: MAIN
CVS Tags: anaconda-11_1_2_263-2_el5_sme, HEAD
Changes since 1.8: +0 -0 lines
* Sat Nov 9 2013 Ian Wells <esmith@wellsi.com> 11.1.2-263-2-1.el5.sme
- Apply SME patches to 11.1.2.259-1 [SME: 7976]
- Update warning about re-formatting attached hard drives [SME: 4788]
- Increase fuzz to allow package to build [SME: 7853]
- No warnings if kernel not upgraded
  (recreate initrd if kernel was installed)
- No warnings if unable to remove rpm databases
- Always pick best arch for package
- Allow creating/mounting degraded raid arrays
  (log info about degraded arrays instead of not starting them)
- Start /boot raid device first so it will be in sync for grub install
- Automatically upgrade bootloader if necessary
- Log install errors but don't bug user about them
- Search for language updates on upgrade disk
- Force time to be based on UTC
- Add final warning before installing
- Make install headless but still write keyboard info out
  (don't ask us to use vnc mode)
- Make install window wider
  (fix titlebar spacing)
- Don't email root on raid events
- Make boot loader use SME labels
- Determine upgradability of SME server
  (change erase disks to upgrade dialog)
- Run SME post-install scripts on kickstart install/upgrade
- Limit languages to those supported by SME

1 slords 1.5 From 325e7cfea669b42ee655f18a5c52d063b9d8ea92 Mon Sep 17 00:00:00 2001
2 slords 1.1 From: Shad L. Lords <slords@mail.com>
3     Date: Mon, 19 Oct 2009 08:43:46 -0600
4 slords 1.5 Subject: [PATCH 15/17] Determine upgradability of SME server
5 slords 1.1
6     ---
7     partedUtils.py | 1 +
8     textw/upgrade_text.py | 21 +++++++--------------
9     upgrade.py | 2 +-
10     yuminstall.py | 7 ++-----
11     4 files changed, 11 insertions(+), 20 deletions(-)
12    
13     diff --git a/partedUtils.py b/partedUtils.py
14 slords 1.2 index 2a2d034..2dfe638 100644
15 slords 1.1 --- a/partedUtils.py
16     +++ b/partedUtils.py
17     @@ -571,6 +571,7 @@ def productMatches(oldproduct, newproduct):
18     return 1
19    
20     productUpgrades = {
21     + "SME Server": ("Mitel Networks", "SME Server", "e-smith server", ),
22     "Red Hat Enterprise Linux Server": ("Red Hat Enterprise Linux Client release 5",
23     "Red Hat Enterprise Linux Server release 5"),
24     "Red Hat Enterprise Linux Client": ("Red Hat Enterprise Linux Client release 5",
25     diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py
26     index 61c5576..b87ffb2 100644
27     --- a/textw/upgrade_text.py
28     +++ b/textw/upgrade_text.py
29     @@ -20,8 +20,8 @@ from snack import *
30     from fsset import *
31     from flags import flags
32     from constants import *
33     -import upgradeclass
34     -UpgradeClass = upgradeclass.InstallClass
35     +import smeupgradeclass
36     +UpgradeClass = smeupgradeclass.InstallClass
37    
38     from rhpl.translate import _
39     import rhpl
40     @@ -200,26 +200,19 @@ class UpgradeExamineWindow:
41     else:
42     scroll = 0
43     partList = []
44     - partList.append(_("Reinstall System"))
45     + partList.append(_("Erase ALL disks, and perform a fresh install"))
46    
47     for (drive, fs, desc, label) in parts:
48     - if drive[:5] != "/dev/":
49     - devname = "/dev/" + drive
50     - else:
51     - devname = drive
52     - partList.append("%s (%s)" %(desc, drive))
53     + partList.append(_("Upgrade existing \"%s\" system") %(desc))
54    
55     (button, choice) = ListboxChoiceWindow(screen, _("System to Upgrade"),
56     - _("One or more existing Linux installations "
57     - "have been found "
58     - "on your system.\n\nPlease choose one to upgrade, "
59     - "or select 'Reinstall System' to freshly install "
60     - "your system."), partList,
61     + _("Your system is upgradeable."), partList,
62     [ TEXT_OK_BUTTON,
63     TEXT_BACK_BUTTON ],
64     width = 55, scroll = scroll,
65     height = height,
66     - help = "upgraderoot")
67     + help = "upgraderoot",
68     + default = 1)
69    
70     if button == TEXT_BACK_CHECK:
71     return INSTALL_BACK
72     diff --git a/upgrade.py b/upgrade.py
73     index 5beb8a2..429a780 100644
74     --- a/upgrade.py
75     +++ b/upgrade.py
76     @@ -123,7 +123,7 @@ def findRootParts(anaconda):
77    
78     if anaconda.id.rootParts is not None and len(anaconda.id.rootParts) > 0:
79     anaconda.dispatch.skipStep("findinstall", skip = 0)
80     - if productName.find("Red Hat Enterprise Linux") == -1:
81     + if productName.find("SME Server") == -1:
82     anaconda.dispatch.skipStep("installtype", skip = 1)
83     else:
84     anaconda.dispatch.skipStep("findinstall", skip = 1)
85     diff --git a/yuminstall.py b/yuminstall.py
86 slords 1.5 index 8505120..6f405fa 100644
87 slords 1.1 --- a/yuminstall.py
88     +++ b/yuminstall.py
89 slords 1.5 @@ -1675,10 +1675,10 @@ class YumBackend(AnacondaBackend):
90 slords 1.1 # Figure out current version for upgrade nag and for determining weird
91     # upgrade cases
92     supportedUpgradeVersion = -1
93     - for pkgtup in self.ayum.rpmdb.whatProvides('redhat-release', None, None):
94     + for pkgtup in self.ayum.rpmdb.whatProvides('e-smith-release', None, None):
95     n, a, e, v, r = pkgtup
96     if supportedUpgradeVersion <= 0:
97     - val = rpmUtils.miscutils.compareEVR((None, '3', '1'),
98     + val = rpmUtils.miscutils.compareEVR(('26', '7.0', '01'),
99     (e, v,r))
100     if val > 0:
101     supportedUpgradeVersion = 0
102 slords 1.5 @@ -1686,9 +1686,6 @@ class YumBackend(AnacondaBackend):
103 slords 1.1 supportedUpgradeVersion = 1
104     break
105    
106     - if productName.find("Red Hat Enterprise Linux") == -1:
107     - supportedUpgradeVersion = 1
108     -
109     if supportedUpgradeVersion == 0:
110     rc = anaconda.intf.messageWindow(_("Warning"),
111     _("You appear to be upgrading from a system "
112     --
113 slords 1.7 1.7.1
114 slords 1.1

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