From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= Subject: [PATCH] listing modules fixed Date: Tue, 8 Mar 2011 22:36:38 +0100 Message-ID: <1299620198-25877-1-git-send-email-aidecoe@aidecoe.name> References: Return-path: In-Reply-To: Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= 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(-) diff --git a/dracut b/dracut index 6e6de1e..8d305a6 100755 --- a/dracut +++ b/dracut @@ -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 -- 1.7.4.1