diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-10-17 21:52:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-10-17 21:52:01 +0000 |
commit | 83eb660f75aebbf33c585e35076f4d5b32ace49b (patch) | |
tree | 31fae0ddb097934f2d83b1b24f11b240e4780fa0 | |
parent | fb8da7120f7d56271ac424c47f7f73f0fbdbc1ad (diff) | |
download | anaconda-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)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | kickstart.py | 2 | ||||
-rw-r--r-- | partitions.py | 2 |
3 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,10 @@ +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) + 2004-10-15 Jeremy Katz <katzj@redhat.com> * iw/driveorderwidget.py: Remove empty row leading 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" diff --git a/partitions.py b/partitions.py index ace61d302..a969bd7e6 100644 --- a/partitions.py +++ b/partitions.py @@ -994,6 +994,8 @@ class Partitions: elif request.type == REQUEST_NEW: if request.size: args.append("--size=%s" % (request.size)) + if request.size == 0: + args.append("--size=0") if request.grow: args.append("--grow") if request.start: |