Browse Source

fix kernel modules dir handling

master
Harald Hoyer 16 years ago
parent
commit
f24a2d46b7
  1. 4
      dracut
  2. 3
      dracut-functions

4
dracut

@ -109,6 +109,10 @@ esac @@ -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

3
dracut-functions

@ -264,9 +264,6 @@ check_modules() { @@ -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

Loading…
Cancel
Save