FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-18-2010, 04:26 AM
Hans de Goede
 
Default Fixed the setting of LD_LIBRARY_PATH in rescue

Ack.

On 01/18/2010 02:42 PM, Martin Gracik wrote:

The hardcoded setting of LD_LIBRARY_PATH was not taking into
consideration if there are lib or lib64 directories,
and was also overwriting everything loader put there before.
Changed to just prepend "/mnt/sysimage" to the directories
we already have in the path.
---
rescue.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/rescue.py b/rescue.py
index 7252b83..4ae4d6f 100644
--- a/rescue.py
+++ b/rescue.py
@@ -382,7 +382,9 @@ def runRescue(anaconda, instClass):
fd.close()

# set a library path to use mounted fs
- os.environ["LD_LIBRARY_PATH"] = "/lib:/usr/lib:/usr/X11R6/lib:/lib:/mnt/usr/lib:/mnt/sysimage/lib:/mnt/sysimage/usr/lib:/mnt/sysimage/usr/X11R6/lib"
+ libdirs = os.environ["LD_LIBRARY_PATH"].split(":")
+ mounted = map(lambda dir: "/mnt/sysimage%s" % dir, libdirs)
+ os.environ["LD_LIBRARY_PATH"] = ":".join(libdirs + mounted)

# find groff data dir
try:


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-18-2010, 12:42 PM
Martin Gracik
 
Default Fixed the setting of LD_LIBRARY_PATH in rescue

The hardcoded setting of LD_LIBRARY_PATH was not taking into
consideration if there are lib or lib64 directories,
and was also overwriting everything loader put there before.
Changed to just prepend "/mnt/sysimage" to the directories
we already have in the path.
---
rescue.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/rescue.py b/rescue.py
index 7252b83..4ae4d6f 100644
--- a/rescue.py
+++ b/rescue.py
@@ -382,7 +382,9 @@ def runRescue(anaconda, instClass):
fd.close()

# set a library path to use mounted fs
- os.environ["LD_LIBRARY_PATH"] = "/lib:/usr/lib:/usr/X11R6/lib:/lib:/mnt/usr/lib:/mnt/sysimage/lib:/mnt/sysimage/usr/lib:/mnt/sysimage/usr/X11R6/lib"
+ libdirs = os.environ["LD_LIBRARY_PATH"].split(":")
+ mounted = map(lambda dir: "/mnt/sysimage%s" % dir, libdirs)
+ os.environ["LD_LIBRARY_PATH"] = ":".join(libdirs + mounted)

# find groff data dir
try:
--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org