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 KDE

 
 
LinkBack Thread Tools
 
Old 04-15-2010, 08:41 AM
Hans de Goede
 
Default Try to get boot reqs onto the selected boot device. (#560387)

Ack.

On 04/15/2010 05:04 AM, David Lehman wrote:

Also, don't log huge disk strings when the names will suffice.
---
storage/partitioning.py | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 20d7694..4f81405 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -922,10 +922,21 @@ def allocatePartitions(storage, disks, partitions, freespace):
# no disks specified means any disk will do
req_disks = disks

+ # sort the disks, making sure the boot disk is first
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]:
+ boot_index = req_disks.index(disk)
+
+ if boot_index is not None and len(req_disks)> 1:
+ boot_disk = req_disks.pop(boot_index)
+ req_disks.insert(0, boot_disk)
+
log.debug("allocating partition: %s ; id: %d ; disks: %s ;
"
"boot: %s ; primary: %s ; size: %dMB ; grow: %s ; "
- "max_size: %s" % (_part.name, _part.id, req_disks,
+ "max_size: %s" % (_part.name, _part.id,
+ [d.name for d in req_disks],
_part.req_bootable, _part.req_primary,
_part.req_size, _part.req_grow,
_part.req_max_size))


_______________________________________________
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 06:12 AM.

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