[PATCH 4/5] Modify autopart requests to include a separate /home (#150670).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This modifies the default partitioning as follows:

(1) For VGs <= 50 GB, we will continue to make swap and / as normal.
(2) For VGs >= 50 GB, / will cap at 50 GB and /home will consume the rest.

50 GB is fairly arbitrary, and was based on the fact that an Everything
install of Fedora right now is ~ 40 GB, plus some room for expansion.  Very
few users are likely to do an Everything install so this should provide plenty
of space for upgrades and future growth.  Additionally, this is only a default
partitioning suggestion and can always be overridden by the user.
---
 installclass.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/installclass.py b/installclass.py
index 7143f6a..1e1d9b8 100644
--- a/installclass.py
+++ b/installclass.py
@@ -178,7 +178,10 @@ class BaseInstallClass(object):
 
     def setDefaultPartitioning(self, storage, platform):
         autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
-                                 size=1024, grow=True, asVol=True)]
+                                 size=1024, maxSize=50*1024, grow=True,
+                                 asVol=True),
+                        PartSpec(mountpoint="/home", fstype=storage.defaultFSType,
+                                 size=100, grow=True, asVol=True, requiredSpace=50*1024)]
 
         bootreq = platform.setDefaultPartitioning()
         if bootreq:
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux