From 7bcacaaa5f73f5056917d913ad65b854c97bc25d Mon Sep 17 00:00:00 2001 From: Seewer Philippe Date: Fri, 27 Feb 2009 15:45:53 +0100 Subject: [PATCH] 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(-) --- dracut-functions | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut-functions b/dracut-functions index f9a600daa..50e458830 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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" -- 2.47.3