diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-26 13:59:28 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-30 17:27:13 -0400 |
commit | f273f08ca8f06fd23bfd02a60bdd050eecfa2833 (patch) | |
tree | 2f24d76a6e7a5a47807040dbdbc438bc90117b2b /installclass.py | |
parent | 78b930d80ecddb3a8c28b077a5c96ef06a78d8e2 (diff) | |
download | anaconda-f273f08ca8f06fd23bfd02a60bdd050eecfa2833.tar.gz anaconda-f273f08ca8f06fd23bfd02a60bdd050eecfa2833.tar.xz anaconda-f273f08ca8f06fd23bfd02a60bdd050eecfa2833.zip |
Use PartSpec in the auto partition request list, and assign weights to them.
Also, add a weight method to the Platform classes and have it return an integer
for whatever fstype or mountpoint is provided.
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/installclass.py b/installclass.py index bca365e32..913444f18 100644 --- a/installclass.py +++ b/installclass.py @@ -32,6 +32,7 @@ from instdata import InstallData from constants import * from filer import * +from storage.partspec import * import gettext _ = lambda x: gettext.ldgettext("anaconda", x) @@ -188,14 +189,16 @@ class BaseInstallClass(object): def setDefaultPartitioning(self, storage, platform, clear = CLEARPART_TYPE_LINUX, doClear = True): - autorequests = [ ("/", storage.defaultFSType, 1024, None, True, True) ] + autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, + size=1024, grow=True, asVol=True)] bootreq = platform.setDefaultPartitioning() if bootreq: autorequests.extend(bootreq) (minswap, maxswap) = iutil.swapSuggestion() - autorequests.append((None, "swap", minswap, maxswap, True, True)) + autorequests.append(PartSpec(fstype="swap", size=minswap, maxSize=maxswap, + grow=True, asVol=True)) if doClear: storage.clearPartType = clear |