[PATCH 3/6] Pass anaconda.rootPath to FSSet()

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

 



The FSSet objects needs to see anaconda.rootPath for a number of
methods.
---
 storage/__init__.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 2fc35aa..0f3efdb 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -224,7 +224,7 @@ class Storage(object):
                                      passphrase=self.encryptionPassphrase,
                                      luksDict=self.__luksDevs,
                                      iscsi=self.iscsi)
-        self.fsset = FSSet(self.devicetree)
+        self.fsset = FSSet(self.devicetree, self.anaconda.rootPath)
 
     def doIt(self):
         self.devicetree.processActions()
@@ -291,7 +291,7 @@ class Storage(object):
                                      luksDict=self.__luksDevs,
                                      iscsi=self.iscsi)
         self.devicetree.populate()
-        self.fsset = FSSet(self.devicetree)
+        self.fsset = FSSet(self.devicetree, self.anaconda.rootPath)
         self.anaconda.id.rootParts = None
         self.anaconda.id.upgradeRoot = None
         w.pop()
@@ -1267,8 +1267,9 @@ def get_containing_device(path, devicetree):
 
 class FSSet(object):
     """ A class to represent a set of filesystems. """
-    def __init__(self, devicetree):
+    def __init__(self, devicetree, rootpath):
         self.devicetree = devicetree
+        self.rootpath = rootpath
         self.cryptTab = None
         self.blkidTab = None
         self.origFStab = None
-- 
1.6.2.5

_______________________________________________
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