Re: [PATCH] Plumb the cleanupOnly= option through to Storage.reset().

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

 



On Fri, Jul 08, 2011 at 04:42:14PM -0400, Chris Lumens wrote:
> This is useful for callers of storage as a module who don't want to do things
> like prompt for a LUKS passphrase.
> ---
>  pyanaconda/storage/__init__.py |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
> index c0d9e6a..f804fce 100644
> --- a/pyanaconda/storage/__init__.py
> +++ b/pyanaconda/storage/__init__.py
> @@ -428,7 +428,7 @@ class Storage(object):
>          except Exception as e:
>              log.error("failure tearing down device tree: %s" % e)
>  
> -    def reset(self):
> +    def reset(self, cleanupOnly=False):
>          """ Reset storage configuration to reflect actual system state.
>  
>              This should rescan from scratch but not clobber user-obtained
> @@ -463,7 +463,8 @@ class Storage(object):
>                                       luksDict=self.__luksDevs,
>                                       iscsi=self.iscsi,
>                                       dasd=self.dasd)
> -        self.devicetree.populate(progressWindow=prog)
> +        self.devicetree.populate(progressWindow=prog,
> +                                 cleanupOnly=cleanupOnly)
>          self.config.clearPartType = clearPartType # set it back
>          self.fsset = FSSet(self.devicetree,
>                             getattr(self.anaconda, "rootPath", ""))
> -- 
> 1.7.4.1

Gee, that looks easy. Ack.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpPeHWVeaBGJ.pgp
Description: PGP signature

_______________________________________________
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