SVN: rc-scripts/trunk/rc.d/rc.sysinit

glen glen at pld-linux.org
Thu May 30 21:29:15 CEST 2013


Author: glen
Date: Thu May 30 21:29:15 2013
New Revision: 12671

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
rc.sysinit: check vars first, allow disable multipath from kernel cmdline


Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Thu May 30 21:29:15 2013
@@ -64,6 +64,10 @@
 			# default is set in /etc/sysconfig/system
 			START_UDEV=no
 		;;
+		nomultipath)
+			# default is set in /etc/sysconfig/system
+			DM_MULTIPATH=no
+		;;
 		nousb)
 			nousb=1
 		;;
@@ -619,7 +623,7 @@
 		done
 	fi
 
-	if [ -x /sbin/multipath ] && ! is_no "$DM_MULTIPATH"; then
+	if ! is_no "$DM_MULTIPATH" [ -x /sbin/multipath ]; then
 		# first make nodes that were discarded due (possible) new /dev mount
 		modprobe -s dm-mod
 		/sbin/dmsetup mknodes


More information about the pld-cvs-commit mailing list