[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[lorax 2/2] Get rid of create_gconf().
- From: Ales Kozumplik <akozumpl redhat com>
- To: anaconda-devel-list redhat com
- Subject: [lorax 2/2] Get rid of create_gconf().
- Date: Wed, 16 Mar 2011 09:18:28 +0100
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]