summaryrefslogtreecommitdiffstats
path: root/partitioning.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-09-04 19:11:52 +0000
committerJeremy Katz <katzj@redhat.com>2001-09-04 19:11:52 +0000
commit22382492069045ca2d89045e7b2be357661d77b2 (patch)
treea19deff88b361f5cb4364b28c5b1de8860e02335 /partitioning.py
parent52ee66bfc018c96b55a63309e343b2b8e747663b (diff)
downloadanaconda-22382492069045ca2d89045e7b2be357661d77b2.tar.gz
anaconda-22382492069045ca2d89045e7b2be357661d77b2.tar.xz
anaconda-22382492069045ca2d89045e7b2be357661d77b2.zip
hack for kickstart where the partitions are checked before being allocated
Diffstat (limited to 'partitioning.py')
-rw-r--r--partitioning.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/partitioning.py b/partitioning.py
index 2e10873ca..dcb4701ad 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -545,7 +545,12 @@ def requestSize(req, diskset):
else:
part = get_partition_by_name(diskset.disks, req.device)
if not part:
- thissize = req.size
+ # XXX hack for kickstart which ends up calling this
+ # before allocating the partitions
+ if req.size:
+ thissize = req.size
+ else:
+ thissize = 0
else:
thissize = getPartSizeMB(part)
return thissize