summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-17 10:45:58 -0400
committerChris Lumens <clumens@redhat.com>2008-06-18 10:44:55 -0400
commit28a6bb2db97ab887d79e66b40b449a6fccc177a2 (patch)
treedcd396b39fe35e124fd13a2199fe7626756fca37
parent3c14bef35fa32c9f25312226a3144ba5f8c13eba (diff)
downloadanaconda-28a6bb2db97ab887d79e66b40b449a6fccc177a2.tar.gz
anaconda-28a6bb2db97ab887d79e66b40b449a6fccc177a2.tar.xz
anaconda-28a6bb2db97ab887d79e66b40b449a6fccc177a2.zip
Remove support for RHupdates. updates.img is the way to go now.
-rwxr-xr-xanaconda18
-rw-r--r--dmraid.py2
-rw-r--r--docs/anaconda-release-notes.txt6
-rw-r--r--docs/install-methods.txt2
-rw-r--r--fsset.py3
-rwxr-xr-xgui.py7
-rw-r--r--installclass.py2
-rw-r--r--language.py3
-rw-r--r--loader2/loader.c20
-rwxr-xr-xscripts/pyrc.py10
-rw-r--r--yuminstall.py8
11 files changed, 14 insertions, 67 deletions
diff --git a/anaconda b/anaconda
index 6873f4cd0..06921e2c4 100755
--- a/anaconda
+++ b/anaconda
@@ -169,17 +169,6 @@ def setupPythonUpdates():
for pypkg in ("rhpl", "yum", "rpmUtils", "urlgrabber", "rhpxl", "pirut",
"pykickstart"):
- if os.access("/mnt/source/RHupdates/%s" %(pypkg,), os.X_OK):
- try:
- os.mkdir("/tmp/updates/%s" %(pypkg,))
- except:
- pass
-
- # symlink the existing ones
- for f in os.listdir("/mnt/source/RHupdates/%s" %(pypkg,)):
- os.symlink("/mnt/source/RHupdates/%s/%s" %(pypkg, f),
- "/tmp/updates/%s/%s" %(pypkg, f))
-
# get the libdir. *sigh*
if os.access("/usr/lib64/python%s/site-packages/%s" %(pyver, pypkg),
os.X_OK):
@@ -375,8 +364,6 @@ def addPoPath(dir):
gettext.bindtextdomain(basename[:-3], dir)
def setupTranslations():
- if os.path.isdir("/mnt/source/RHupdates/po"):
- addPoPath("/mnt/source/RHupdates/po")
if os.path.isdir("/tmp/updates/po"):
addPoPath("/tmp/updates/po")
gettext.textdomain("anaconda")
@@ -433,8 +420,7 @@ def runVNC():
child = os.fork()
if child == 0:
- for p in ('/mnt/source/RHupdates/pyrc.py', \
- '/tmp/updates/pyrc.py', \
+ for p in ('/tmp/updates/pyrc.py', \
'/usr/lib/anaconda-runtime/pyrc.py'):
if os.access(p, os.R_OK|os.X_OK):
os.environ['PYTHONSTARTUP'] = p
@@ -604,7 +590,7 @@ if __name__ == "__main__":
# pull this in to get product name and versioning
import product
- # this handles setting up RHupdates for pypackages to minimize the set needed
+ # this handles setting up updates for pypackages to minimize the set needed
setupPythonUpdates()
import signal, traceback, string, isys, iutil, time
diff --git a/dmraid.py b/dmraid.py
index 8a90c036d..90b5ad7dc 100644
--- a/dmraid.py
+++ b/dmraid.py
@@ -27,7 +27,7 @@
import sys
import string
-_bdModulePath = "/tmp/updates/bdevid/:/mnt/source/RHupdates/bdevid/:"
+_bdModulePath = "/tmp/updates/bdevid/:"
import block
oldPath = block.getBdevidPath()
if not _bdModulePath in oldPath:
diff --git a/docs/anaconda-release-notes.txt b/docs/anaconda-release-notes.txt
index 5ace02bce..167411cb1 100644
--- a/docs/anaconda-release-notes.txt
+++ b/docs/anaconda-release-notes.txt
@@ -121,10 +121,8 @@ the main directory of the floppy. The installer is invoked with an
'updates' option from the boot command line, and the user is prompted
to insert the update disk. The files are copied off into a ramdisk
location which Python has been instructed to look at first of modules.
-For NFS installes, any files in the directory 'RHupdates' under the
-directory mounted in the loader will also be used before the source
-files shipped in the release. If one is customizing the distribution
-and the installer then installing over NFS is the fastest way to work.
+If one is customizing the distribution and the installer then installing
+over NFS is the fastest way to work.
The installer will also use an 'updates.img' file to get patched
source files. This is particularly useful for FTP and HTTP based installs.
diff --git a/docs/install-methods.txt b/docs/install-methods.txt
index 07abd253d..b630946b4 100644
--- a/docs/install-methods.txt
+++ b/docs/install-methods.txt
@@ -57,8 +57,6 @@ Current Installation Methods:
Update Options:
- floppy or USB key drive.
- 'updates.img' file in 'images/' directory.
- - updated python sources or modules in 'RHupdates/' directory are
- used in preference to those in original.
- remote updates.img downloaded via FTP or HTTP.
- NFS (from a directory of ISOs)
diff --git a/fsset.py b/fsset.py
index 17883613e..2e75f7f6e 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2919,8 +2919,7 @@ def ext2FormatFilesystem(argList, messageFile, windowCreator, mntpoint):
os.close(fd)
env = os.environ
- configs = [ "/mnt/source/RHupdates/mke2fs.conf",
- "/tmp/updates/mke2fs.conf",
+ configs = [ "/tmp/updates/mke2fs.conf",
"/etc/mke2fs.conf",
]
for config in configs:
diff --git a/gui.py b/gui.py
index 6f95ba2af..4657e0562 100755
--- a/gui.py
+++ b/gui.py
@@ -403,8 +403,7 @@ def addFrame(dialog, title=None, showtitle = 1):
dialog.connect ("key-release-event", handleShiftPrintScrnRelease)
def findGladeFile(file):
- for dir in ("/mnt/source/RHupdates/", "/tmp/updates/",
- "ui/", "/usr/share/anaconda/ui/",
+ for dir in ("/tmp/updates/", "ui/", "/usr/share/anaconda/ui/",
"/usr/share/pirut/ui/"):
fn = dir + file
if os.access(fn, os.R_OK):
@@ -421,9 +420,7 @@ def getGladeWidget(file, rootwidget, i18ndomain="anaconda"):
return (xml, w)
def findPixmap(file):
- for dir in ("/mnt/source/RHupdates/pixmaps/",
- "/mnt/source/RHupdates/",
- "/tmp/updates/pixmaps/", "/tmp/updates/",
+ for dir in ( "/tmp/updates/pixmaps/", "/tmp/updates/",
"/tmp/product/pixmaps/", "/tmp/product/", "pixmaps/",
"/usr/share/anaconda/pixmaps/",
"/usr/share/pixmaps/",
diff --git a/installclass.py b/installclass.py
index 8fda4b98f..414b5cfc1 100644
--- a/installclass.py
+++ b/installclass.py
@@ -245,8 +245,6 @@ def availableClasses(showHidden=0):
if os.access("installclasses", os.R_OK):
path = "installclasses"
- elif os.access("/mnt/source/RHupdates/installclasses", os.R_OK):
- path = "/mnt/source/RHupdates/installclasses"
elif os.access("/tmp/updates/installclasses", os.R_OK):
path = "/tmp/updates/installclasses"
elif os.access("/tmp/product/installclasses", os.R_OK):
diff --git a/language.py b/language.py
index 64ecca2fb..a853da2df 100644
--- a/language.py
+++ b/language.py
@@ -77,8 +77,7 @@ class Language:
break
# nick -> (name, short name, font, keyboard, timezone) mapping
- search = ('lang-table', '/tmp/updates/lang-table',
- '/mnt/source/RHupdates/lang-table', '/etc/lang-table',
+ search = ('lang-table', '/tmp/updates/lang-table', '/etc/lang-table',
'/usr/lib/anaconda/lang-table')
for path in search:
if os.access(path, os.R_OK):
diff --git a/loader2/loader.c b/loader2/loader.c
index baafba84c..650f2ae11 100644
--- a/loader2/loader.c
+++ b/loader2/loader.c
@@ -358,9 +358,7 @@ static void spawnShell(void) {
signal(SIGINT, SIG_DFL);
signal(SIGTSTP, SIG_DFL);
- if (!access("/mnt/source/RHupdates/pyrc.py", R_OK|X_OK))
- setenv("PYTHONSTARTUP", "/mnt/source/RHupdates/pyrc.py", 1);
- else if (!access("/tmp/updates/pyrc.py", R_OK|X_OK))
+ if (!access("/tmp/updates/pyrc.py", R_OK|X_OK))
setenv("PYTHONSTARTUP", "/tmp/updates/pyrc.py", 1);
else if (!access("/usr/lib/anaconda-runtime/pyrc.py", R_OK|X_OK))
setenv("PYTHONSTARTUP", "/usr/lib/anaconda-runtime/pyrc.py", 1);
@@ -1609,7 +1607,6 @@ int main(int argc, char ** argv) {
char ** argptr, ** tmparg;
char * anacondaArgs[50];
- int useRHupdates = 0;
struct loaderData_s loaderData;
@@ -1829,19 +1826,11 @@ int main(int argc, char ** argv) {
manualDeviceCheck(&loaderData);
}
- useRHupdates = 0;
if (loaderData.updatessrc)
loadUpdatesFromRemote(loaderData.updatessrc, &loaderData);
else if (FL_UPDATES(flags))
loadUpdates(&loaderData);
- /* we only want to use RHupdates on nfs installs. otherwise, we'll
- * use files on the first iso image and not be able to umount it */
- if (!strncmp(url, "nfs:", 4) && !FL_STAGE2(flags)) {
- logMessage(INFO, "NFS install method detected, will use RHupdates/");
- useRHupdates = 1;
- }
-
/* make sure /tmp/updates exists so that magic in anaconda to */
/* symlink rhpl/ will work */
if (access("/tmp/updates", F_OK))
@@ -1857,13 +1846,6 @@ int main(int argc, char ** argv) {
add_to_path_env("PATH", "/tmp/updates");
add_to_path_env("PATH", "/tmp/product");
- if (useRHupdates) {
- add_to_path_env("PYTHONPATH", "/mnt/source/RHupdates");
- add_to_path_env("LD_LIBRARY_PATH", "/mnt/source/RHupdates");
- add_to_path_env("PATH", "/mnt/source/RHupdates");
- add_fw_search_dir(&loaderData, "/mnt/source/RHupdates/firmware");
- }
-
stop_fw_loader(&loaderData);
start_fw_loader(&loaderData);
diff --git a/scripts/pyrc.py b/scripts/pyrc.py
index 47b0f02f3..6acee5b96 100755
--- a/scripts/pyrc.py
+++ b/scripts/pyrc.py
@@ -23,15 +23,5 @@ try:
readline.parse_and_bind("tab: complete")
del rlcompleter
del readline
-
- import os
- import sys
- try:
- os.stat('/mnt/source/RHupdates')
- sys.path.insert(0, '/mnt/source/RHupdates')
- except:
- pass
- del sys
- del os
except:
pass
diff --git a/yuminstall.py b/yuminstall.py
index 6a2ec7ced..3b6525b81 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -371,7 +371,7 @@ class AnacondaYum(YumSorter):
self.macros = {}
if flags.selinux:
- for directory in ("/tmp/updates", "/mnt/source/RHupdates",
+ for directory in ("/tmp/updates",
"/etc/selinux/targeted/contexts/files",
"/etc/security/selinux/src/policy/file_contexts",
"/etc/security/selinux"):
@@ -977,9 +977,9 @@ keepcache=0
logfile=/tmp/yum.log
metadata_expire=0
obsoletes=True
-pluginpath=/usr/lib/yum-plugins,/tmp/updates/yum-plugins,/mnt/source/RHupdates/yum-plugins
-pluginconfpath=/etc/yum/pluginconf.d,/tmp/updates/pluginconf.d,/mnt/source/RHupdates/pluginconf.d
-reposdir=/etc/yum.repos.d,/tmp/updates/yum.repos.d,/mnt/source/RHupdates/yum.repos.d,/tmp/product/yum.repos.d
+pluginpath=/usr/lib/yum-plugins,/tmp/updates/yum-plugins
+pluginconfpath=/etc/yum/pluginconf.d,/tmp/updates/pluginconf.d
+reposdir=/etc/yum.repos.d,/tmp/updates/yum.repos.d,/tmp/product/yum.repos.d
""" % (anaconda.rootPath, anaconda.rootPath)
fd = open("/etc/yum.conf", "w")