[arch-projects] [mkinitcpio][PATCH] init: don't modprobe if $MODULES is empty

Dave Reisner d at falconindy.com
Sun Jun 12 19:17:33 EDT 2011


This is harmless when it fails, but it might alarm users.

Signed-off-by: Dave Reisner <d at falconindy.com>
---
I don't think this is a showstopper, but it should certainly be fixed ASAP.

Apologies for having missed this.

 init |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init b/init
index a5e6103..c5f15f7 100644
--- a/init
+++ b/init
@@ -53,7 +53,7 @@ fi
 
 . /config
 
-/sbin/modprobe -qab $MODULES
+[ -n "$MODULES" ] && /sbin/modprobe -qab $MODULES
 
 # If rootdelay is empty or not a non-negative integer, set it to 10
 if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then
-- 
1.7.5.4



More information about the arch-projects mailing list