summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-10-17 21:52:01 +0000
committerJeremy Katz <katzj@redhat.com>2004-10-17 21:52:01 +0000
commit83eb660f75aebbf33c585e35076f4d5b32ace49b (patch)
tree31fae0ddb097934f2d83b1b24f11b240e4780fa0 /kickstart.py
parentfb8da7120f7d56271ac424c47f7f73f0fbdbc1ad (diff)
downloadanaconda-83eb660f75aebbf33c585e35076f4d5b32ace49b.tar.gz
anaconda-83eb660f75aebbf33c585e35076f4d5b32ace49b.tar.xz
anaconda-83eb660f75aebbf33c585e35076f4d5b32ace49b.zip
2004-10-17 Jeremy Katz <katzj@redhat.com>
* partitions.py (Partitions.writeKS): Write out size=0 (#135714) * kickstart.py (KickstartBase.definePartition): Allow partition size to be zero to work better with LVM autopart (#135714)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 07167993c..5603baae5 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1287,7 +1287,7 @@ class KickstartBase(BaseInstallClass):
filesystem = fileSystemTypeGetDefault()
mountpoint = extra[0]
- if (not size) and (not start and not end) and (not onPart):
+ if (size is None) and (not start and not end) and (not onPart):
raise KickstartValueError, "partition command requires a size specification"
if start and not disk:
raise KickstartValueError, "partition command with start cylinder requires a drive specification"