aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-08-25 14:33:48 -0400
committerBill Nottingham <notting@redhat.com>2011-08-25 14:33:48 -0400
commit588b435f07ef70684d7979b0472b8a0aabe44d71 (patch)
treeccfaeff7c662c95dd369fb30d00d71c9d247dead
parent19ea300575c00132cf576ae0f8ef99f0c78f20d1 (diff)
downloadinitscripts-588b435f07ef70684d7979b0472b8a0aabe44d71.tar
initscripts-588b435f07ef70684d7979b0472b8a0aabe44d71.tar.gz
initscripts-588b435f07ef70684d7979b0472b8a0aabe44d71.tar.bz2
initscripts-588b435f07ef70684d7979b0472b8a0aabe44d71.tar.xz
initscripts-588b435f07ef70684d7979b0472b8a0aabe44d71.zip
Call multipath and kpartx with -u. (#733437)
-rwxr-xr-xrc.d/init.d/netfs4
-rwxr-xr-xsystemd/fedora-storage-init6
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