/[smeserver]/rpms/anaconda/sme10/001-anaconda-koozali-product.patch
ViewVC logotype

Diff of /rpms/anaconda/sme10/001-anaconda-koozali-product.patch

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

Revision 1.1 by jpp, Wed Jun 10 04:05:21 2020 UTC Revision 1.2 by jpp, Fri Jun 12 03:46:49 2020 UTC
# Line 18  Line 18 
18               return ["xfs", "ext4", "ext3", "ext2"]               return ["xfs", "ext4", "ext3", "ext2"]
19           else:           else:
20               return ["ext4", "ext3", "ext2", "xfs"]               return ["ext4", "ext3", "ext2", "xfs"]
 --- anaconda-21.48.22.56/pyanaconda/installclasses/centos.py    2020-06-10 05:26:53.097268868 +0200  
 +++ anaconda-21.48.22.56/pyanaconda/installclasses/centos.py    2020-05-22 10:29:05.295267142 +0200  
 @@ -28,9 +28,9 @@  
  from blivet.size import Size  
   
  class RHELBaseInstallClass(BaseInstallClass):  
 -    name = "CentOS Linux"  
 +    name = "Koozali SME Server 10 alpha5"  
      sortPriority = 20001  
 -    if not productName.startswith("CentOS"):  
 +    if not productName.startswith("Koozali"):  
          hidden = True  
      defaultFS = "xfs"  
   
 @@ -69,9 +69,9 @@  
          BaseInstallClass.__init__(self)  
   
  class RHELAtomicInstallClass(RHELBaseInstallClass):  
 -    name = "CentOS Atomic Host"  
 +    name = "SME Atomic Host"  
      sortPriority=21001  
 -    hidden = not productName.startswith(("CentOS Atomic Host", "CentOS Linux Atomic"))  
 +    hidden = not productName.startswith(("SME Atomic Host", "SME Linux Atomic"))  
   
      def setDefaultPartitioning(self, storage):  
          autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,  
21  --- anaconda-21.48.22.56/pyanaconda/installclasses/fedora.py    2020-06-10 05:26:52.987273207 +0200  --- anaconda-21.48.22.56/pyanaconda/installclasses/fedora.py    2020-06-10 05:26:52.987273207 +0200
22  +++ anaconda-21.48.22.56/pyanaconda/installclasses/fedora.py    2016-07-29 05:42:59.278517374 +0200  +++ anaconda-21.48.22.56/pyanaconda/installclasses/fedora.py    2016-07-29 05:42:59.278517374 +0200
23  @@ -25,7 +25,7 @@  @@ -25,7 +25,7 @@
# Line 55  Line 29 
29           hidden = True           hidden = True
30    
31       _l10n_domain = "anaconda"       _l10n_domain = "anaconda"
 --- anaconda-21.48.22.56/pyanaconda/installclasses/koozali.py   1970-01-01 01:00:00.000000000 +0100  
 +++ anaconda-21.48.22.56/pyanaconda/installclasses/koozali.py   2020-05-22 10:28:15.271213629 +0200  
 @@ -0,0 +1,97 @@  
 +#  
 +# rhel.py  
 +#  
 +# Copyright (C) 2010  Red Hat, Inc.  All rights reserved.  
 +#  
 +# This program is free software; you can redistribute it and/or modify  
 +# it under the terms of the GNU General Public License as published by  
 +# the Free Software Foundation; either version 2 of the License, or  
 +# (at your option) any later version.  
 +#  
 +# This program is distributed in the hope that it will be useful,  
 +# but WITHOUT ANY WARRANTY; without even the implied warranty of  
 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 +# GNU General Public License for more details.  
 +#  
 +# You should have received a copy of the GNU General Public License  
 +# along with this program.  If not, see <http://www.gnu.org/licenses/>.  
 +#  
 +  
 +from pyanaconda.installclass import BaseInstallClass  
 +from pyanaconda.product import productName  
 +from pyanaconda import network  
 +from pyanaconda import nm  
 +from pyanaconda.kickstart import getAvailableDiskSpace  
 +from blivet.partspec import PartSpec  
 +from blivet.platform import platform  
 +from blivet.devicelibs import swap  
 +from blivet.size import Size  
 +  
 +class RHELBaseInstallClass(BaseInstallClass):  
 +    name = "Koozali SME Server 10 alpha5"  
 +    sortPriority = 20003  
 +    if not productName.startswith("Koozali"):  
 +        hidden = True  
 +    defaultFS = "xfs"  
 +  
 +    bootloaderTimeoutDefault = 5  
 +  
 +    ignoredPackages = ["ntfsprogs", "reiserfs-utils", "hfsplus-tools"]  
 +  
 +    installUpdates = False  
 +  
 +    _l10n_domain = "comps"  
 +  
 +    efi_dir = "centos"  
 +  
 +    help_placeholder = "CentOSPlaceholder.html"  
 +    help_placeholder_with_links = "CentOSPlaceholder.html"  
 +  
 +    def configure(self, anaconda):  
 +        BaseInstallClass.configure(self, anaconda)  
 +        self.setDefaultPartitioning(anaconda.storage)  
 +  
 +    def setNetworkOnbootDefault(self, ksdata):  
 +        if network.has_some_wired_autoconnect_device():  
 +            return  
 +        # choose the device used during installation  
 +        # (ie for majority of cases the one having the default route)  
 +        dev = network.default_route_device() \  
 +              or network.default_route_device(family="inet6")  
 +        if not dev:  
 +            return  
 +        # ignore wireless (its ifcfgs would need to be handled differently)  
 +        if nm.nm_device_type_is_wifi(dev):  
 +            return  
 +        network.update_onboot_value(dev, "yes", ksdata)  
 +  
 +    def __init__(self):  
 +        BaseInstallClass.__init__(self)  
 +  
 +class RHELAtomicInstallClass(RHELBaseInstallClass):  
 +    name = "SME Atomic Host"  
 +    sortPriority=21003  
 +    hidden = not productName.startswith(("SME Atomic Host", "SME Linux Atomic"))  
 +  
 +    def setDefaultPartitioning(self, storage):  
 +        autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,  
 +                                size=Size("1GiB"), maxSize=Size("3GiB"), grow=True, lv=True)]  
 +  
 +        bootreqs = platform.setDefaultPartitioning()  
 +        if bootreqs:  
 +            autorequests.extend(bootreqs)  
 +  
 +        disk_space = getAvailableDiskSpace(storage)  
 +        swp = swap.swapSuggestion(disk_space=disk_space)  
 +        autorequests.append(PartSpec(fstype="swap", size=swp, grow=False,  
 +                                    lv=True, encrypted=True))  
 +  
 +        for autoreq in autorequests:  
 +            if autoreq.fstype is None:  
 +                if autoreq.mountpoint == "/boot":  
 +                    autoreq.fstype = storage.defaultBootFSType  
 +                    autoreq.size = Size("300MiB")  
 +                else:  
 +                    autoreq.fstype = storage.defaultFSType  
 +  
 +        storage.autoPartitionRequests = autorequests  
32  --- anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py     2020-06-10 05:26:53.788241656 +0200  --- anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py     2020-06-10 05:26:53.788241656 +0200
33  +++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py     2016-07-29 05:42:59.946517173 +0200  +++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py     2016-07-29 05:42:59.946517173 +0200
34  @@ -483,7 +483,7 @@  @@ -483,7 +483,7 @@


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