Create directories for symlinked libraries if needed
authorSeewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
Fri, 27 Feb 2009 14:45:53 +0000 (15:45 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 4 Mar 2009 16:10:51 +0000 (17:10 +0100)
Sometimes symlinks for libraries reside in weird places. Create those
weird places if necessary.

--
  dracut-functions |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

dracut-functions

index f9a600d..50e4588 100755 (executable)
@@ -45,6 +45,7 @@ inst_library() {
        reallib="$(readlink -f "$src")"
        lib=${src##*/}
        inst_simple "$reallib" "$reallib"
+       mkdir -p ${initdir}${dest%/*}
        (cd "${initdir}${dest%/*}" && ln -s "$reallib" "$lib")
     else
        inst_simple "$src" "$dest"