From: Elan Ruusamäe Date: Tue, 6 Jun 2006 17:39:50 +0000 (+0000) Subject: - remove hackery that modifies host tree (from where you run anaconda) X-Git-Tag: auto/th/anaconda-11_4_1_200808292136-1~49 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fanaconda.git;a=commitdiff_plain;h=0327455de405230fa95a3c11d696adadc7aec89f - remove hackery that modifies host tree (from where you run anaconda) Changed files: anaconda-hosttree.patch -> 1.1 --- diff --git a/anaconda-hosttree.patch b/anaconda-hosttree.patch new file mode 100644 index 0000000..1fd28b0 --- /dev/null +++ b/anaconda-hosttree.patch @@ -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: