diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-11-03 11:05:42 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-11-03 11:06:56 -0500 |
commit | f686a94f7d8e52d4e4222162fb54aa93dc7af2d1 (patch) | |
tree | accafeafb2fdec2ee5349c114ce18d158a073792 /livecd.py | |
parent | cd1a52006becac3155bfa409deb75b9e40f9d7b1 (diff) | |
download | anaconda-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.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |