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 > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 02-28-2009, 10:08 PM
Hans de Goede
 
Default PATCH : storage-branch: Do not create PV's in empty space of disks not selected for install

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 17a1081..49b3659 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -58,7 +58,7 @@ def doAutoPartition(anaconda):
# get a list of disks that have at least one free space region of at
# least 100MB
disks = []
- for disk in anaconda.id.storage.disks:
+ for disk in [d for d in anaconda.id.storage.disks if d.name in anaconda.id.storage.clearPartDisks]:
partedDisk = disk.partedDisk
part = disk.partedDisk.getFirstPartition()
while part:
--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-28-2009, 10:09 PM
Hans de Goede
 
Default PATCH : storage-branch: Do not create PV's in empty space of disks not selected for install

This one should have been 2/2 of course, duh.

Hans de Goede wrote:

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 17a1081..49b3659 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -58,7 +58,7 @@ def doAutoPartition(anaconda):
# get a list of disks that have at least one free space region of at
# least 100MB
disks = []
- for disk in anaconda.id.storage.disks:
+ for disk in [d for d in anaconda.id.storage.disks if d.name in
anaconda.id.storage.clearPartDisks]:

partedDisk = disk.partedDisk
part = disk.partedDisk.getFirstPartition()
while part:


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-03-2009, 05:56 AM
David Lehman
 
Default PATCH : storage-branch: Do not create PV's in empty space of disks not selected for install

On Sun, 2009-03-01 at 00:08 +0100, Hans de Goede wrote:
> ---
> storage/partitioning.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Looks good.

>
> diff --git a/storage/partitioning.py b/storage/partitioning.py
> index 17a1081..49b3659 100644
> --- a/storage/partitioning.py
> +++ b/storage/partitioning.py
> @@ -58,7 +58,7 @@ def doAutoPartition(anaconda):
> # get a list of disks that have at least one free space region of at
> # least 100MB
> disks = []
> - for disk in anaconda.id.storage.disks:
> + for disk in [d for d in anaconda.id.storage.disks if d.name in anaconda.id.storage.clearPartDisks]:
> partedDisk = disk.partedDisk
> part = disk.partedDisk.getFirstPartition()
> while part:

_______________________________________________
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 09:43 PM.

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