summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-11-03 11:05:42 -0500
committerJeremy Katz <katzj@redhat.com>2008-11-03 11:06:56 -0500
commitf686a94f7d8e52d4e4222162fb54aa93dc7af2d1 (patch)
treeaccafeafb2fdec2ee5349c114ce18d158a073792 /livecd.py
parentcd1a52006becac3155bfa409deb75b9e40f9d7b1 (diff)
downloadanaconda-f686a94f7d8e52d4e4222162fb54aa93dc7af2d1.tar.gz
anaconda-f686a94f7d8e52d4e4222162fb54aa93dc7af2d1.tar.xz
anaconda-f686a94f7d8e52d4e4222162fb54aa93dc7af2d1.zip
Add a basic method for checking the minimal size needed for a backend
Add a basic way to query a backend for how much space is needed on a per-partition basis. This isn't always able to be known and if it's unknown, then you'll get back 0. Add the implementation for / on livecd
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/livecd.py b/livecd.py
index f3afc2088..5d7d3f7b7 100644
--- a/livecd.py
+++ b/livecd.py
@@ -366,6 +366,11 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
def kernelVersionList(self, rootPath = "/"):
return packages.rpmKernelVersionList(rootPath)
+ def getMinimumSizeMB(self, part):
+ if part == "/":
+ return self._getLiveSizeMB()
+ return 0
+
def doBackendSetup(self, anaconda):
# ensure there's enough space on the rootfs
# FIXME: really, this should be in the general sanity checking, but