1 |
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.159.old/pyanaconda/installclasses/koozali.py 2022-08-17 01:43:18.893000000 -0400 |
3 |
+++ anaconda-21.48.22.159/pyanaconda/installclasses/koozali.py 2022-08-17 01:11:42.918000000 -0400 |
4 |
@@ -36,9 +36,9 @@ |
5 |
|
6 |
|
7 |
class RHELBaseInstallClass(BaseInstallClass): |
8 |
- name = "CentOS Linux" |
9 |
+ name = "Koozali SME Server 10" |
10 |
sortPriority = 20001 |
11 |
- if not productName.startswith("CentOS"): |
12 |
+ if not productName.startswith("Koozali"): |
13 |
hidden = True |
14 |
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=False, 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=False, 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 |
|