aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-storage-init
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 /systemd/fedora-storage-init
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)
Diffstat (limited to 'systemd/fedora-storage-init')
-rwxr-xr-xsystemd/fedora-storage-init6
1 files changed, 3 insertions, 3 deletions
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