Skip to contentSkip to conversation

listing modules fixed

PATCH In review Amadeusz Żołnowski 2 participants 3 messages Mar 8, 2011 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
index 6e6de1e..ef8d398 100755
@@ -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
#2 lore raw
In reply to a message not in the archive

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
index 6e6de1e..ef8d398 100755
@@ -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.

#4 lore raw

PATCH 1/1 listing modules fixed

In reply to a message not in the archive

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
index 6e6de1e..8d305a6 100755
@@ -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