[arch-projects] [initscripts] [PATCH 15/21] functions: Make activate_vgs return 0 if noop for consistency

Kurt J. Bosch kjb-temp-2009 at alpenjodel.de
Tue Jun 28 09:27:39 EDT 2011


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

diff --git a/functions b/functions
index 861fcbe..2eb4f72 100644
--- a/functions
+++ b/functions
@@ -324,7 +324,7 @@ udevd_modprobe() {
 }
 
 activate_vgs() {
-	[[ $USELVM = [yY][eE][sS] && -x $(type -P lvm) && -d /sys/block ]] || return
+	[[ $USELVM = [yY][eE][sS] && -x $(type -P lvm) && -d /sys/block ]] || return 0
 	# Kernel 2.6.x, LVM2 groups
 	stat_busy "Activating LVM2 groups"
 		/sbin/modprobe -q dm-mod 2>/dev/null
-- 
1.7.1



More information about the arch-projects mailing list