listing modules fixed
PATCH 1/1 listing modules fixed
Modules were not listed because code relied on deprecated 'install' and 'installkernel' scripts.
--- dracut | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
dracut +1 -1
@@ -227,7 +227,7 @@ export dracutfunctions [[ $do_list = yes ]] && { for mod in $dracutbasedir/modules.d/*; do [[ -d $mod ]] || continue; - [[ -e $mod/install || -e $mod/installkernel ]] || continue; + [[ -e $mod/module-setup.sh ]] || continue; echo ${mod##*/??} done exit 0
Signature · 1 line
1.7.4.1
A message that is not in the archive (sent off-list or not yet received): 1299618814-16400-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org
2011/3/9 Amadeusz Żołnowski <[email protected]>:
Quoted 12 lines
Modules were not listed because code relied on deprecated 'install' and 'installkernel' scripts.
---
dracut | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)dracut +0
-0@@ -227,7 +227,7 @@ export dracutfunctions [[ $do_list = yes ]] && {
Quoted 4 lines
for mod in $dracutbasedir/modules.d/*; do
[[ -d $mod ]] || continue;
- [[ -e $mod/install || -e $mod/installkernel ]] || continue;
+ [[ -e$mod/module-setup.sh]] || continue;
The code in dracut-functions still supports both old and new style; I guess it should check for both as well unless old is going to be completely removed.
We still have some add-ons that were not ported to new API.
A message that is not in the archive (sent off-list or not yet received): AANLkTikP6V9KC14chu5tJjt_pEWQaSWRak1QCzXw5VGR-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
PATCH 1/1 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.
--- dracut | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
dracut +2 -1
@@ -227,7 +227,8 @@ export dracutfunctions [[ $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
Signature · 1 line
1.7.4.1