diff options
-rw-r--r-- | initscripts.spec | 1 | ||||
-rwxr-xr-x | rc.d/init.d/netfs | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/initscripts.spec b/initscripts.spec index 1c7608f5..afd87ce2 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -209,6 +209,7 @@ rm -rf $RPM_BUILD_ROOT %changelog - setsysfont, rc.sysinit: fix KEYTABLE, setsysfont when serial console is present (#150769) +- netfs: call multipath, kpartx if necessary (#180977) * Fri Apr 21 2006 Miloslav Trmac <mitr@redhat.com> - 7.93.25.EL-1 - Document HOTPLUG (#189509) diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index c1769d9d..8609e813 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -45,8 +45,15 @@ case "$1" in [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs [ -n "$NETDEVFSTAB" ] && { + if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ]; then + modprobe dm-multipath >/dev/null 2>&1 + /sbin/multipath.static -v 0 + if [ -x /sbin/kpartx ]; then + /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a" + fi + fi if [ -x /sbin/lvm.static ]; then - if /sbin/lvm.static vgscan > /dev/null 1>&1 ; then + if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y fi fi |