Re: [PATCH] Prevent Platform from importing storage stuff until it's necessary.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

Chris Lumens <clumens@xxxxxxxxxx> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

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

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux