[PATCH] Create directories for symlinked libraries if needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

diff --git a/dracut-functions b/dracut-functions
index 0fcfe53..cca63e6 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"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux