diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-15 16:12:38 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-15 16:12:38 +0000 |
commit | 364344ddd86584f5ab9648ba06c605892e980d11 (patch) | |
tree | 04952b62619fc40c85275be4a235b5abaaea9b7d /autopart.py | |
parent | 335f6088e695a519be9666a5ca90301475f415fc (diff) | |
download | anaconda-364344ddd86584f5ab9648ba06c605892e980d11.tar.gz anaconda-364344ddd86584f5ab9648ba06c605892e980d11.tar.xz anaconda-364344ddd86584f5ab9648ba06c605892e980d11.zip |
fix using by-cylinder partitioning for bootable requests
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py index d114442da..43797c344 100644 --- a/autopart.py +++ b/autopart.py @@ -122,12 +122,14 @@ class partlist: # partitions with a specific start and end cylinder requested are # placed where they were asked to go def fitConstrained(diskset, requests, primOnly=0, newParts = None): + bootreq = requests.getBootableRequest() + for request in requests.requests: if request.type != REQUEST_NEW: continue if request.device: continue - if primOnly and not request.primary: + if primOnly and not request.primary and request != bootreq: continue if request.drive and (request.start != None): if not request.end and not request.size: |