]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: install /lib* for kernel images
authorHarald Hoyer <harald@redhat.com>
Mon, 25 Jul 2011 12:28:40 +0000 (14:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 Jul 2011 12:28:40 +0000 (14:28 +0200)
dracut

diff --git a/dracut b/dracut
index 079d5be649316c95cc824d798d4b55f5ce99377f..aa8cb58b2391b41a4f527966c967e3446ce329a4 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -503,6 +503,15 @@ if [[ $kernel_only != yes ]]; then
 
     ln -sfn /run "$initdir/var/run"
     ln -sfn /run/lock "$initdir/var/lock"
+else
+    for d in lib "$libdir"; do
+        [[ -e "${initdir}${prefix}/$d" ]] && continue
+        if [ -h "/$d" ]; then
+            inst "/$d" "${prefix}/$d"
+        else
+            mkdir -m 0755 -p "${initdir}${prefix}/$d"
+        fi
+    done
 fi
 
 # check all our modules to see if they should be sourced.