From 588b435f07ef70684d7979b0472b8a0aabe44d71 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 25 Aug 2011 14:33:48 -0400 Subject: Call multipath and kpartx with -u. (#733437) --- rc.d/init.d/netfs | 4 ++-- systemd/fedora-storage-init | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index 4358572d..3633284b 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -48,9 +48,9 @@ case "$1" in fi if [ -f /etc/multipath.conf ] && [ -x /sbin/multipath ]; then modprobe dm-multipath >/dev/null 2>&1 - /sbin/multipath -v 0 + /sbin/multipath -u -v 0 if [ -x /sbin/kpartx ]; then - /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p" + /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -u -a -p p" fi fi if [ -x /sbin/lvm ]; then diff --git a/systemd/fedora-storage-init b/systemd/fedora-storage-init index 7f439bd9..66ba6a82 100755 --- a/systemd/fedora-storage-init +++ b/systemd/fedora-storage-init @@ -9,9 +9,9 @@ if ! strstr "$cmdline" nompath && [ -f /etc/multipath.conf ] && \ [ -x /sbin/multipath ]; then modprobe dm-multipath > /dev/null 2>&1 - /sbin/multipath -v 0 + /sbin/multipath -u -v 0 if [ -x /sbin/kpartx ]; then - /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p" >/dev/null + /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -u -a -p p" >/dev/null fi fi @@ -25,7 +25,7 @@ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then continue fi /sbin/dmraid -ay -i --rm_partitions -p "$dmname" >/dev/null 2>&1 - /sbin/kpartx -a -p p "/dev/mapper/$dmname" + /sbin/kpartx -u -a -p p "/dev/mapper/$dmname" done fi fi -- cgit v1.2.1