/[smeserver]/rpms/anaconda/sme10/101-anaconda-koozali-add-koozali-install-class.patch
ViewVC logotype

Diff of /rpms/anaconda/sme10/101-anaconda-koozali-add-koozali-install-class.patch

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

Revision 1.3 by jpp, Tue Feb 16 20:27:19 2021 UTC Revision 1.5 by jpp, Wed Aug 17 05:50:48 2022 UTC
# Line 1  Line 1 
1  diff -Nur anaconda-21.48.22.158.old/pyanaconda/installclasses/koozali.py anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py  diff -Nur --no-dereference anaconda-21.48.22.159.old/pyanaconda/installclasses/koozali.py anaconda-21.48.22.159/pyanaconda/installclasses/koozali.py
2  --- anaconda-21.48.22.158.old/pyanaconda/installclasses/koozali.py      2020-06-12 05:48:35.508466296 +0200  --- anaconda-21.48.22.159.old/pyanaconda/installclasses/koozali.py      2022-08-17 01:43:18.893000000 -0400
3  +++ anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py  2020-06-12 06:14:55.587338502 +0200  +++ anaconda-21.48.22.159/pyanaconda/installclasses/koozali.py  2022-08-17 01:11:42.918000000 -0400
4  @@ -36,9 +36,9 @@  @@ -36,9 +36,9 @@
5    
6    
7   class RHELBaseInstallClass(BaseInstallClass):   class RHELBaseInstallClass(BaseInstallClass):
8  -    name = "CentOS Linux"  -    name = "CentOS Linux"
9  +    name = "Koozali SME Server 10 alpha5"  +    name = "Koozali SME Server 10"
10       sortPriority = 20001       sortPriority = 20001
11  -    if not productName.startswith("CentOS"):  -    if not productName.startswith("CentOS"):
12  +    if not productName.startswith("Koozali"):  +    if not productName.startswith("Koozali"):
13           hidden = True           hidden = True
14       defaultFS = "xfs"       defaultFS = "xfs"
15    
16    @@ -55,6 +55,33 @@
17         help_placeholder = "CentOSPlaceholder.html"
18         help_placeholder_with_links = "CentOSPlaceholderWithLinks.html"
19    
20    +    def setDefaultPartitioning(self, storage):
21    +        autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
22    +                                 size=Size("5GiB"),
23    +                                 grow=True,
24    +                                 lv=True, thin=False)]
25    +
26    +        bootreqs = platform.setDefaultPartitioning()
27    +        if bootreqs:
28    +            autorequests.extend(bootreqs)
29    +
30    +
31    +        disk_space = getAvailableDiskSpace(storage)
32    +        swp = swap.swapSuggestion(disk_space=disk_space)
33    +        autorequests.append(PartSpec(fstype="swap", size=swp, grow=False,
34    +                                     lv=True, encrypted=True))
35    +
36    +        for autoreq in autorequests:
37    +            if autoreq.fstype is None:
38    +                if autoreq.mountpoint == "/boot":
39    +                    autoreq.fstype = storage.defaultBootFSType
40    +                    autoreq.size = Size("500MiB")
41    +                else:
42    +                    autoreq.fstype = storage.defaultFSType
43    +
44    +        storage.autoPartitionRequests = autorequests
45    +
46    +
47         def configure(self, anaconda):
48             BaseInstallClass.configure(self, anaconda)
49    


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