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" 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=True, 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=True, 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)