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

Contents 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


Revision 1.5 - (show annotations) (download)
Wed Aug 17 05:50:48 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
Changes since 1.4: +37 -3 lines
* Tue Feb 16 2021 Jean-Philipe Pialasse <tests@pialasse.com> 21.48.22.159-2.sme
- patch for product.img branding of anaconda

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=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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed