--- rpms/anaconda/sme10/101-anaconda-koozali-add-koozali-install-class.patch 2020/06/12 04:16:08 1.1 +++ rpms/anaconda/sme10/101-anaconda-koozali-add-koozali-install-class.patch 2022/09/02 11:12:51 1.7 @@ -1,15 +1,49 @@ -diff -Nur anaconda-21.48.22.158.old/pyanaconda/installclasses/koozali.py anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py ---- anaconda-21.48.22.158.old/pyanaconda/installclasses/koozali.py 2020-06-12 05:48:35.508466296 +0200 -+++ anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py 2020-06-12 06:14:55.587338502 +0200 +diff -Nur --no-dereference anaconda-21.48.22.159.old/pyanaconda/installclasses/koozali.py anaconda-21.48.22.159/pyanaconda/installclasses/koozali.py +--- anaconda-21.48.22.159.old/pyanaconda/installclasses/koozali.py 2022-08-17 01:43:18.893000000 -0400 ++++ anaconda-21.48.22.159/pyanaconda/installclasses/koozali.py 2022-08-17 01:11:42.918000000 -0400 @@ -36,9 +36,9 @@ class RHELBaseInstallClass(BaseInstallClass): - name = "CentOS Linux" -+ name = "Koozali SME Server 10 alpha5" ++ name = "Koozali SME Server 10" sortPriority = 20001 - if not productName.startswith("CentOS"): + if not productName.startswith("Koozali"): hidden = True defaultFS = "xfs" +@@ -55,6 +55,33 @@ + help_placeholder = "CentOSPlaceholder.html" + help_placeholder_with_links = "CentOSPlaceholderWithLinks.html" + ++ def setDefaultPartitioning(self, storage): ++ autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, ++ size=Size("5GiB"), ++ grow=True, ++ lv=False, thin=False)] ++ ++ 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=False, encrypted=True)) ++ ++ for autoreq in autorequests: ++ if autoreq.fstype is None: ++ if autoreq.mountpoint == "/boot": ++ autoreq.fstype = storage.defaultBootFSType ++ autoreq.size = Size("500MiB") ++ else: ++ autoreq.fstype = storage.defaultFSType ++ ++ storage.autoPartitionRequests = autorequests ++ ++ + def configure(self, anaconda): + BaseInstallClass.configure(self, anaconda) +