mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH] Create directories for symlinked libraries if needed
@ 2009-02-27 14:45 Seewer Philippe
  0 siblings, 0 replies; only message in thread
From: Seewer Philippe @ 2009-02-27 14:45 UTC (permalink / raw)
  To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-27 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27 14:45 [PATCH] Create directories for symlinked libraries if needed Seewer Philippe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox