dracut-functions.sh:inst_library(): readlink source dir first
authorHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 12:06:05 +0000 (13:06 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 15:13:20 +0000 (16:13 +0100)
read link of the source dir, before convert_abs_to_rel()

dracut-functions.sh

index 9c040a7..3f3667f 100755 (executable)
@@ -456,6 +456,7 @@ inst_library() {
         _reallib=$(readlink -f "$_src")
         inst_simple "$_reallib" "$_reallib"
         inst_dir "${_dest%/*}"
+        [[ -d "${_dest%/*}" ]] && _dest=$(readlink -f "${_dest%/*}")/${_dest##*/}
         ln -sfn $(convert_abs_rel "${_dest}" "${_reallib}") "${initdir}/${_dest}"
     else
         inst_simple "$_src" "$_dest"