[Rear-users] SF.net SVN: rear:[750] trunk/usr/share/rear/skel/default/etc/scripts/ system-setup.d/40-start-udev-or-load-modules.sh

dag- at users.sourceforge.net dag- at users.sourceforge.net
Tue Jan 17 17:14:45 CET 2012


Revision: 750
          http://rear.svn.sourceforge.net/rear/?rev=750&view=rev
Author:   dag-
Date:     2012-01-17 16:14:44 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
Do not load nbd together with all other storage drivers (to prevent nbd* devices to stuff restore menu, eg. on RHEL4)

Modified Paths:
--------------
    trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh

Modified: trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh
===================================================================
--- trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh	2012-01-16 15:00:45 UTC (rev 749)
+++ trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh	2012-01-17 16:14:44 UTC (rev 750)
@@ -29,8 +29,8 @@
 	if test -s /etc/modules ; then
 		while read module options ; do
 			case "$module" in
-				\#*|"") : ;;
-				*)	modprobe -v $module $options ;;
+				(\#*|"") ;;
+				(*) modprobe -v $module $options;;
 			esac
 		done </etc/modules
 	fi
@@ -43,12 +43,14 @@
 	#
 	# Especially how to analyse a running system and load the same drivers and bind them to the same devices in
 	# the correct order
-	for m in $(find /lib/modules/$(uname -r)/kernel/drivers/{scsi,block,ide,message,ata} -type f 2>/dev/null) ; do
-		modprobe -q $(basename $m .ko)
+	echo "Loading storage modules..."
+	for module in $(find /lib/modules/$(uname -r)/kernel/drivers/{scsi,block,ide,message,ata} -type f 2>/dev/null) ; do
+		case "$module" in
+			(nbd) echo "Module nbd excluded from being autoloaded.";;
+			(*) modprobe -q $(basename $module .ko);;
+		esac
 	done
 fi
 
 # device mapper gets a special treatment here because there is no dependency to load it
 modprobe -q dm-mod
-
-

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rear-users mailing list