summaryrefslogtreecommitdiffstats
path: root/pyanaconda/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-02-28 16:58:33 -0500
committerChris Lumens <clumens@redhat.com>2012-02-28 16:58:33 -0500
commit7ebe93850b6546ec9f56aea4738b653e1238f100 (patch)
treec45373ac60ef9e706c3c471accb33ae4958bed3f /pyanaconda/installclass.py
parentb09759b030f3fa87525dcc28d71bf7c5821278e6 (diff)
downloadanaconda-7ebe93850b6546ec9f56aea4738b653e1238f100.tar.gz
anaconda-7ebe93850b6546ec9f56aea4738b653e1238f100.tar.xz
anaconda-7ebe93850b6546ec9f56aea4738b653e1238f100.zip
Set the default packaging payload as an attribute on Anaconda.
I've first removed the definitions of getBackend from our standard install classes. The base class returns None. For other products with their own install classes, they can have getBackend return something. For our products, we will fall back to looking up the payload class based on flags. Note that payload.setup() still needs to be called, but this should be done intentionally when it's needed since it must happen after the network is up and storage is populated. Note also that this adds more crud to Anaconda, but we're going to be removing most of this object later so hopefully it won't be so bad. We'll also need to better document install classes.
Diffstat (limited to 'pyanaconda/installclass.py')
-rw-r--r--pyanaconda/installclass.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py
index 9dc2b96c5..3a0b832e1 100644
--- a/pyanaconda/installclass.py
+++ b/pyanaconda/installclass.py
@@ -166,9 +166,10 @@ class BaseInstallClass(object):
map(lambda x: anaconda.backend.selectGroup(x), grps)
def getBackend(self):
- # this should be overriden in distro install classes
- from backend import AnacondaBackend
- return AnacondaBackend
+ # The default is to return None here, which means anaconda should
+ # use live or yum (whichever can be detected). This method is
+ # provided as a way for other products to specify their own.
+ return None
def setDefaultPartitioning(self, storage, platform):
autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,