summaryrefslogtreecommitdiffstats
path: root/initrd
diff options
context:
space:
mode:
authorNico Dietrich2006-02-09 17:26:50 +0100
committerNico Dietrich2006-02-09 17:26:50 +0100
commit882d383dd18c47c8e1ba98e5ca307ff182c6f06f (patch)
tree7c70d0a1efa5afc29fedb2a52a856a4cb75a2b28 /initrd
parentMajor additions to preinit funktion in functions-10.1, switch over to (diff)
downloadcore-882d383dd18c47c8e1ba98e5ca307ff182c6f06f.tar.gz
core-882d383dd18c47c8e1ba98e5ca307ff182c6f06f.tar.xz
core-882d383dd18c47c8e1ba98e5ca307ff182c6f06f.zip
fix cobi for relative links
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@67 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd')
-rwxr-xr-xinitrd/mkdxsinitrd8
1 files changed, 7 insertions, 1 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd
index b77319cd..71a1531a 100755
--- a/initrd/mkdxsinitrd
+++ b/initrd/mkdxsinitrd
@@ -74,7 +74,13 @@ if [ -z ${FPTB} ] ; then
return 1;
elif [ -L ${FPTB} ] ; then
# do not copy the link but the binary the link points to
- FPTB=${ROOTDIR}/`ls -la ${FPTB} | sed -e "s,.* ,,"`
+
+ local LINKDEST=`ls -la ${FPTB} | sed -e "s,.* ,,"`
+ case $LINKDEST in
+ /*) FPTB=${ROOTDIR}${LINKDEST}
+ ;;
+ *) ;;
+ esac
cp ${FPTB} ${INSTDIR}/${DEST}
else
cp ${FPTB} ${INSTDIR}/${DEST}