- remove hackery that modifies host tree (from where you run anaconda)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Jun 2006 17:39:50 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anaconda-hosttree.patch -> 1.1

anaconda-hosttree.patch [new file with mode: 0644]

diff --git a/anaconda-hosttree.patch b/anaconda-hosttree.patch
new file mode 100644 (file)
index 0000000..1fd28b0
--- /dev/null
@@ -0,0 +1,59 @@
+--- anaconda-11.0.5/anaconda   2006-06-06 20:38:29.731167253 +0300
++++ anaconda-11.0.5-antihackery/anaconda       2006-06-06 20:26:53.335544911 +0300
+@@ -1029,28 +1029,11 @@
+       addpid(child)
+       os.kill(child, signal.SIGCONT)
+-
+-# setup links required for all install types
+-for i in ( "services", "protocol", "nsswitch.conf", "joe", "selinux"):
+-    try:
+-      os.symlink ("../mnt/runtime/etc/" + i, "/etc/" + i)
+-    except:
+-      pass
+-
+ #
+ # setup links required by graphical mode if installing and verify display mode
+ #
+ if (display_mode == 'g'):
+     stdoutLog.info (_("Starting graphical installation..."))
+-    if not flags.test and flags.setupFilesystems:
+-      for i in ( "imrc", "im_palette.pal", "gtk-2.0", "pango", "fonts",
+-                 "fb.modes"):
+-          try:
+-              if os.path.exists("/mnt/runtime/etc/%s" %(i,)):
+-                  os.symlink ("../mnt/runtime/etc/" + i, "/etc/" + i)
+-          except:
+-              pass
+-
+     try:
+         from gui import InstallInterface
+     except Exception, e:
+--- anaconda-11.0.5/yuminstall.py      2006-06-06 20:38:29.721167028 +0300
++++ anaconda-11.0.5-antihackery/yuminstall.py  2006-06-06 20:37:06.879307087 +0300
+@@ -879,25 +879,6 @@
+         self.initLog(id, instPath)
+         if flags.setupFilesystems:
+-            # setup /etc/rpm/platform for the post-install environment
+-            iutil.writeRpmPlatform(instPath)
+-            
+-            try:
+-                # FIXME: making the /var/lib/rpm symlink here is a hack to
+-                # workaround db->close() errors from rpm
+-                iutil.mkdirChain("/var/lib")
+-                for path in ("/var/tmp", "/var/lib/rpm"):
+-                    if os.path.exists(path) and not os.path.islink(path):
+-                        iutil.rmrf(path)
+-                    if not os.path.islink(path):
+-                        os.symlink("/mnt/sysimage/%s" %(path,), "%s" %(path,))
+-                    else:
+-                        log.warning("%s already exists as a symlink to %s" %(path, os.readlink(path),))
+-            except Exception, e:
+-                # how this could happen isn't entirely clear; log it in case
+-                # it does and causes problems later
+-                log.error("error creating symlink, continuing anyway: %s" %(e,))
+-
+             # SELinux hackery (#121369)
+             if flags.selinux:
+                 try:
This page took 0.104617 seconds and 4 git commands to generate.