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 > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 03-16-2011, 01:39 PM
Chris Lumens
 
Default Prevent Platform from importing storage stuff until it's necessary.

---
pyanaconda/platform.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
index acf7d5e..3942887 100644
--- a/pyanaconda/platform.py
+++ b/pyanaconda/platform.py
@@ -22,10 +22,6 @@

import iutil
import parted
-import storage
-from storage.errors import *
-from storage.formats import *
-from storage.partspec import *

import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -166,6 +162,7 @@ class Platform(object):

def setDefaultPartitioning(self):
"""Return the default platform-specific partitioning information."""
+ from storage.partspec import PartSpec
return [PartSpec(mountpoint="/boot", fstype=self.defaultBootFSType, size=500,
weight=self.weight(mountpoint="/boot"))]

@@ -267,6 +264,7 @@ class EFI(Platform):
return errors

def setDefaultPartitioning(self):
+ from storage.partspec import PartSpec
ret = Platform.setDefaultPartitioning(self)
ret.append(PartSpec(mountpoint="/boot/efi", fstype="efi", size=20,
maxSize=200, grow=True, weight=self.weight(fstype="efi")))
@@ -379,6 +377,7 @@ class IPSeriesPPC(PPC):
return errors

def setDefaultPartitioning(self):
+ from storage.partspec import PartSpec
ret = PPC.setDefaultPartitioning(self)
ret.append(PartSpec(fstype="prepboot", size=4,
weight=self.weight(fstype="prepboot")))
@@ -451,6 +450,7 @@ class NewWorldPPC(PPC):
return errors

def setDefaultPartitioning(self):
+ from storage.partspec import PartSpec
ret = Platform.setDefaultPartitioning(self)
ret.append(PartSpec(fstype="appleboot", size=1, maxSize=1,
weight=self.weight(fstype="appleboot")))
@@ -487,6 +487,7 @@ class S390(Platform):

def setDefaultPartitioning(self):
"""Return the default platform-specific partitioning information."""
+ from storage.partspec import PartSpec
return [PartSpec(mountpoint="/boot", fstype=self.defaultBootFSType, size=500,
weight=self.weight(mountpoint="/boot"), asVol=True,
singlePV=True)]
--
1.7.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-16-2011, 06:10 PM
David Cantrell
 
Default Prevent Platform from importing storage stuff until it's necessary.

Ack.

Chris Lumens <clumens@redhat.com> wrote:

> ---
> pyanaconda/platform.py | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
> index acf7d5e..3942887 100644
> --- a/pyanaconda/platform.py
> +++ b/pyanaconda/platform.py
> @@ -22,10 +22,6 @@
>
> import iutil
> import parted
> -import storage
> -from storage.errors import *
> -from storage.formats import *
> -from storage.partspec import *
>
> import gettext
> _ = lambda x: gettext.ldgettext("anaconda", x)
> @@ -166,6 +162,7 @@ class Platform(object):
>
> def setDefaultPartitioning(self):
> """Return the default platform-specific partitioning information."""
> + from storage.partspec import PartSpec
> return [PartSpec(mountpoint="/boot", fstype=self.defaultBootFSType, size=500,
> weight=self.weight(mountpoint="/boot"))]
>
> @@ -267,6 +264,7 @@ class EFI(Platform):
> return errors
>
> def setDefaultPartitioning(self):
> + from storage.partspec import PartSpec
> ret = Platform.setDefaultPartitioning(self)
> ret.append(PartSpec(mountpoint="/boot/efi", fstype="efi", size=20,
> maxSize=200, grow=True, weight=self.weight(fstype="efi")))
> @@ -379,6 +377,7 @@ class IPSeriesPPC(PPC):
> return errors
>
> def setDefaultPartitioning(self):
> + from storage.partspec import PartSpec
> ret = PPC.setDefaultPartitioning(self)
> ret.append(PartSpec(fstype="prepboot", size=4,
> weight=self.weight(fstype="prepboot")))
> @@ -451,6 +450,7 @@ class NewWorldPPC(PPC):
> return errors
>
> def setDefaultPartitioning(self):
> + from storage.partspec import PartSpec
> ret = Platform.setDefaultPartitioning(self)
> ret.append(PartSpec(fstype="appleboot", size=1, maxSize=1,
> weight=self.weight(fstype="appleboot")))
> @@ -487,6 +487,7 @@ class S390(Platform):
>
> def setDefaultPartitioning(self):
> """Return the default platform-specific partitioning information."""
> + from storage.partspec import PartSpec
> return [PartSpec(mountpoint="/boot", fstype=self.defaultBootFSType, size=500,
> weight=self.weight(mountpoint="/boot"), asVol=True,
> singlePV=True)]
> --
> 1.7.4.1
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

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

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