diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-11-30 23:40:16 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-11-30 23:40:16 +0000 |
commit | 18549fa2562502f6866d85f7d51d1d73e90aad81 (patch) | |
tree | edadf6d1ca0e77220e6f9086a3daa9191761c982 /autopart.py | |
parent | 09a179673b5827234ba5417f21c6e31a93586183 (diff) | |
download | anaconda-18549fa2562502f6866d85f7d51d1d73e90aad81.tar.gz anaconda-18549fa2562502f6866d85f7d51d1d73e90aad81.tar.xz anaconda-18549fa2562502f6866d85f7d51d1d73e90aad81.zip |
2004-11-30 Jeremy Katz <katzj@redhat.com>
* autopart.py (setPreexistParts): Fix handling of existing
partitions on drives which don't have a partition table we
understand (#131333)
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autopart.py b/autopart.py index c85f6faa1..a1141fae3 100644 --- a/autopart.py +++ b/autopart.py @@ -849,6 +849,9 @@ def setPreexistParts(diskset, requests, newParts): for request in requests: if request.type != REQUEST_PREEXIST: continue + if not diskset.disks.has_key(request.drive): + log("pre-existing partition on non-native disk %s, ignoring" %(request.drive,)) + continue disk = diskset.disks[request.drive] part = disk.next_partition() while part: |