diff options
author | Mike Fulbright <msf@redhat.com> | 2003-01-13 21:18:16 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-01-13 21:18:16 +0000 |
commit | 4b871d4a62936cb6ae4da9c4e0a3b36f6aefca7e (patch) | |
tree | 436d32f8d796c7078451579fff5daf8a411f5c04 /rescue.py | |
parent | 732ebcf96482eb32cee2d7378c8d3efeb0b96bca (diff) | |
download | anaconda-4b871d4a62936cb6ae4da9c4e0a3b36f6aefca7e.tar.gz anaconda-4b871d4a62936cb6ae4da9c4e0a3b36f6aefca7e.tar.xz anaconda-4b871d4a62936cb6ae4da9c4e0a3b36f6aefca7e.zip |
added man support to rescue mode, ala bug #81628
Diffstat (limited to 'rescue.py')
-rw-r--r-- | rescue.py | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -270,7 +270,32 @@ def runRescue(instPath, mountroot, id): # set a library path to use mounted fs os.environ["LD_LIBRARY_PATH"] = "/lib:/usr/lib:/usr/X11R6/lib:/usr/kerberos/lib:/mnt/usr/lib:/mnt/sysimage/lib:/mnt/sysimage/usr/lib:/mnt/sysimage/usr/kerberos/lib:/mnt/sysimage/usr/X11R6/lib" + + # get man pages to work + os.environ["MANPATH"] = "/mnt/sysimage/usr/share/man:/mnt/sysimage/usr/local/share/man" + + # find groff data dir + try: + glst = os.listdir["/mnt/sysimage/usr/share/groff"] + + # find a directory which is a numeral, its where + # data files are + for gdir in glst: + try: + gversion = float(gdir) + except: + gversion = None + continue + except: + gversion = None + + if gversion is not None: + gpath = "/mnt/sysimage/usr/share/groff/"+gversion + os.environ["GROFF_FONT_PATH"] = gpath + '/font' + os.environ["GROFF_TMAC_PATH"] = gpath + '/tmac' + + except: # This looks horrible, but all it does is catch every exception, # and reraise those in the tuple check. This lets programming |