]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix kernel modules dir handling
authorHarald Hoyer <harald@eeepc.(none)>
Tue, 21 Jul 2009 16:26:12 +0000 (18:26 +0200)
committerHarald Hoyer <harald@eeepc.(none)>
Tue, 21 Jul 2009 16:26:47 +0000 (18:26 +0200)
dracut
dracut-functions

diff --git a/dracut b/dracut
index a41b4665a84febdf2fe0c11edc77bc319a9dbb7b..bbc6a5dd13f86d729498eb366f044ca5dd2f7dbd 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -109,6 +109,10 @@ esac
 [[ $2 ]] && kernel=$2 || kernel=$(uname -r)
 [[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
 
+srcmods="/lib/modules/$kernel/"
+[ -n "$drivers_dir" ] && srcmods="$drivers_dir"
+export srcmods
+
 if [[ -f $outfile && ! $force ]]; then
     echo "Will not override existing initramfs ($outfile) without --force"
     exit 1
index ea5dcd7d9189a1f02833a541cadfed20cdb3a28e..2178dd74e693c9314ebd167fca5b882e753b81fc 100755 (executable)
@@ -264,9 +264,6 @@ check_modules() {
     done
 }
 
-srcmods="/lib/modules/$kernel/"
-[ -n "$drivers_dir" ] && srcmods="$drivers_dir"
-
 # install kernel modules, and handle installing all their dependencies as well.
 instmods() {
     local mod mpargs modpath modname cmd