diff options
author | Bill Nottingham <notting@redhat.com> | 2005-11-10 22:28:59 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-11-10 22:28:59 +0000 |
commit | f9e475f68d3bdb8be3bdbccf617b45bd5993fb95 (patch) | |
tree | f4e45f737306ab82a1ebf0bbede65330a2050bc4 | |
parent | bfa135cb436bc776ce39c15f99d282890788d168 (diff) | |
download | initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar.gz initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar.bz2 initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar.xz initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.zip |
add call to kpartx for multipath devices (#168538)
-rwxr-xr-x | rc.d/rc.sysinit | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 708e3e42..03e9e7e9 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -491,6 +491,9 @@ if [ -c /dev/mapper/control ]; then 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/dmraid ]; then @@ -553,6 +556,9 @@ if [ -f /etc/mdadm.conf ]; then if [ -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/dmraid ]; then @@ -653,6 +659,9 @@ if [ -f /etc/raidtab ]; then if [ -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/dmraid ]; then |