Get rid of create_gconf().

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.
This commit is contained in:
Ales Kozumplik 2011-03-16 09:14:31 +01:00 committed by Martin Gracik
parent c41e8a89b8
commit 1b5100b5ca
2 changed files with 0 additions and 28 deletions

View File

@ -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()

View File

@ -351,30 +351,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")