[arch-projects] [PATCH] [mkinitcpio] Avoid error message of modprobe if $MODULES is empty

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Fri Jun 17 22:21:32 EDT 2011


Bug introduced in 7a165fb842eb1dcfdd9aa27b74354245d6980d19

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
---
 init |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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



More information about the arch-projects mailing list