On 03/11/2016 12:13 PM, Matthew Miller wrote:
On Fri, Mar 11, 2016 at 09:05:28AM -0500, Stephen Gallagher wrote:
> We could look to see if it allows extending the autopart definition
> (I suspect it probably does), but this is likely to be a non-trivial
> engineering effort. I'm not certain I'm comfortable doing this after
I know _almost_ for sure that it does, and that it's pretty close to
trivial. Did this for years for BU Linux. And as far as I know, this
isn't changed in the rewrite.
Yes, it looks like it does. We can override anything in the InstallClass, so all
we really need to do is replace:
def setDefaultPartitioning(self, storage):
autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
size=Size("1GiB"),
maxSize=Size("50GiB"),
grow=True,
btr=True, lv=True, thin=True, encrypted=True),
PartSpec(mountpoint="/home",
fstype=storage.defaultFSType,
size=Size("500MiB"), grow=True,
requiredSpace=Size("50GiB"),
btr=True, lv=True, thin=True, encrypted=True)]
bootreqs = platform.setDefaultPartitioning()
if bootreqs:
autorequests.extend(bootreqs)
disk_space = getAvailableDiskSpace(storage)
swp = 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
else:
autoreq.fstype = storage.defaultFSType
storage.autoPartitionRequests = autorequests
If anyone wants to take a stab at a modified default layout, I'm listening.