From 02ba201360d26b0b53b90c1ff742c41e2e2b95ad Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sat, 10 Jun 2006 09:20:17 +0000 Subject: [PATCH] Stefan Fiedler: scripts/functions: postflist_libs should create relative symlinks (for easier initrd creation) [2006060119054623590] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7632 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions b/scripts/functions index 9a83a29e4..5a95774bf 100644 --- a/scripts/functions +++ b/scripts/functions @@ -326,7 +326,7 @@ postflist_libs() { if [[ $fn = *.a ]] ; then mv -fv $root/$fn $root/usr/$fn elif [[ $fn = *.so ]] ; then - [ -e $root/usr/$fn ] || ln -sfv /$fn $root/usr/$fn + [ -e $root/usr/$fn ] || ln -sfv ../../$fn $root/usr/$fn elif [[ $fn = *.la ]] ; then sed "s,\([ =']\)/lib\(.*\),\1/usr/lib\2,g" \ $root/$fn > $root/usr/$fn