[readonly/geninitrd: 531/1068] - mpath bindings moved to /etc/multipath/bindings

draenog draenog at pld-linux.org
Sat Nov 2 19:57:02 CET 2013


commit 6d02dd346d915c57a22c34a5e05daac16fc1f4f0
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Nov 14 14:24:56 2007 +0000

    - mpath bindings moved to /etc/multipath/bindings
    
    svn-id: @9054

 geninitrd | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 10c62f1..bb00d16 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1069,17 +1069,18 @@ initrd_gen_udev() {
 }
 
 initrd_gen_multipath() {
-	inst_d /sbin /lib/udev /var/lib/multipath
+	inst_d /sbin /lib/udev /etc/multipath
 	inst_exec /sbin/kpartx /sbin
 	inst_exec /sbin/multipath /sbin
 	# for udev callouts
 	inst_exec /sbin/scsi_id /lib/udev
 	inst_exec /sbin/mpath* /sbin
 	egrep -v '^([ 	]*$|#)' /etc/multipath.conf > $DESTDIR/etc/multipath.conf
-	if [ -f /var/lib/multipath/bindings ]; then
-		inst /var/lib/multipath/bindings /var/lib/multipath
+
+	if [ -f /etc/multipath/bindings ]; then
+		egrep -v '^([ 	]*$|#)' /etc/multipath/bindings > $DESTDIR/etc/multipath/bindings
 	else
-		touch $DESTDIR/var/lib/multipath/bindings
+		touch $DESTDIR/etc/multipath/bindings
 	fi
 
 	mount_dev
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090



More information about the pld-cvs-commit mailing list