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 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list