FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-27-2010, 07:52 PM
David Cantrell
 
Default Handle systems where all disks have a whole disk format (#617554)

---
storage/partitioning.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index e173909..4bc05ee 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -191,6 +191,7 @@ def doAutoPartition(anaconda):

if anaconda.id.storage.doAutoPart:
clearPartitions(anaconda.id.storage)
+ anaconda.id.bootloader.updateDriveList()

if anaconda.id.storage.doAutoPart:
(disks, devs) = _createFreeSpacePartitions(anaconda)
@@ -967,7 +968,8 @@ def allocatePartitions(storage, disks, partitions, freespace):
req_disks.sort(key=lambda d: d.name, cmp=storage.compareDisks)
boot_index = None
for disk in req_disks:
- if disk.name == storage.anaconda.id.bootloader.drivelist[0]:
+ if disk.name in storage.anaconda.id.bootloader.drivelist and
+ disk.name == storage.anaconda.id.bootloader.drivelist[0]:
boot_index = req_disks.index(disk)

if boot_index is not None and len(req_disks) > 1:
--
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org