Skip to contentSkip to conversation

Create directories for symlinked libraries if needed

PATCH New Seewer Philippe 1 participant 1 message Feb 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 -0
index 0fcfe53..cca63e6 100755
@@ -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"

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html