fix kernel modules dir handling

master
Harald Hoyer 2009-07-21 18:26:12 +02:00
parent 6a389cfca8
commit f24a2d46b7
2 changed files with 4 additions and 3 deletions

4
dracut
View File

@ -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

View File

@ -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