Browse Source

listing modules fixed

Modules were not listed because code relied only on deprecated 'install'
and 'installkernel' scripts. Check for 'module-setup.sh' script was
added.
master
Amadeusz Żołnowski 14 years ago committed by Harald Hoyer
parent
commit
d8e8e14e0b
  1. 3
      dracut

3
dracut

@ -231,7 +231,8 @@ dinfo "Executing $0 $dracut_args" @@ -231,7 +231,8 @@ dinfo "Executing $0 $dracut_args"
[[ $do_list = yes ]] && {
for mod in $dracutbasedir/modules.d/*; do
[[ -d $mod ]] || continue;
[[ -e $mod/install || -e $mod/installkernel ]] || continue;
[[ -e $mod/install || -e $mod/installkernel || \
-e $mod/module-setup.sh ]] || continue
echo ${mod##*/??}
done
exit 0

Loading…
Cancel
Save