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 2011-03-08 22:36:38 +01:00 committed by Harald Hoyer
parent fa79f00803
commit d8e8e14e0b
1 changed files with 2 additions and 1 deletions

3
dracut
View File

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