Create directories for symlinked libraries if needed

Sometimes symlinks for libraries reside in weird places. Create those
weird places if necessary.

--
  dracut-functions |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
master
Seewer Philippe 2009-02-27 15:45:53 +01:00 committed by Harald Hoyer
parent 9f88fcd94b
commit 7bcacaaa5f
1 changed files with 1 additions and 0 deletions

View File

@ -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"