[lorax 2/2] Get rid of create_gconf().

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

 



We do what create_gconf is trying to achieve in get_config_files(). What's
more, the files in crete_gconf() end up in the root directory where
nothing can possibly use them because the root user's home is now /root.
---
 src/pylorax/__init__.py    |    4 ----
 src/pylorax/installtree.py |   24 ------------------------
 2 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index d1b5890..6d67b66 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -297,10 +297,6 @@ class Lorax(BaseLoraxClass):
             logger.info("running depmod")
             self.installtree.run_depmod(kernel)
 
-        # create gconf
-        logger.info("creating gconf files")
-        self.installtree.create_gconf()
-
         # move repos
         logger.info("moving anaconda repos")
         self.installtree.move_repos()
diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py
index b66f87c..54e1c5e 100644
--- a/src/pylorax/installtree.py
+++ b/src/pylorax/installtree.py
@@ -323,30 +323,6 @@ class LoraxInstallTree(BaseLoraxClass):
         # move modules out of the tree
         shutil.move(moddir, self.workdir)
 
-    def create_gconf(self):
-        gconfdir = joinpaths(self.root, ".gconf/desktop")
-        os.makedirs(gconfdir)
-        touch(joinpaths(gconfdir, "%gconf.xml"))
-
-        gconfdir = joinpaths(gconfdir, "gnome")
-        os.mkdir(gconfdir)
-        touch(joinpaths(gconfdir, "%gconf.xml"))
-
-        gconfdir = joinpaths(gconfdir, "interface")
-        os.mkdir(gconfdir)
-
-        text = """<?xml version="1.0"?>
-<gconf>
-        <entry name="accessibility" mtime="1176200664" type="bool" value="true">
-        </entry>
-        <entry name="at-spi-corba" mtime="1176200664" type="bool" value="true">
-        </entry>
-</gconf>
-"""
-
-        with open(joinpaths(gconfdir, "%gconf.xml"), "w") as fobj:
-            fobj.write(text)
-
     def move_repos(self):
         src = joinpaths(self.root, "etc/yum.repos.d")
         dst = joinpaths(self.root, "etc/anaconda.repos.d")
-- 
1.7.3.3

_______________________________________________
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