diff options
author | Peter Jones <pjones@redhat.com> | 2006-08-31 22:21:28 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-08-31 22:21:28 +0000 |
commit | 1db1dba1853f6a3d45b10552ab167f60e156f403 (patch) | |
tree | c92f5f31ba8e33273e920e618a5733a0cafec46c /rc.d/rc.sysinit | |
parent | dd845dcbf5d1846925483b24cc0076e6c1e4997d (diff) | |
download | initscripts-1db1dba1853f6a3d45b10552ab167f60e156f403.tar initscripts-1db1dba1853f6a3d45b10552ab167f60e156f403.tar.gz initscripts-1db1dba1853f6a3d45b10552ab167f60e156f403.tar.bz2 initscripts-1db1dba1853f6a3d45b10552ab167f60e156f403.tar.xz initscripts-1db1dba1853f6a3d45b10552ab167f60e156f403.zip |
- make multipath partitions be named with the form "${device}p${partnum}",
like in nash and parted and anaconda and md partitions and...
- make dmraid partitions be named with "p" as well (and use kpartx)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index a1c3e6b4..00c105fc 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -411,17 +411,19 @@ if [ -c /dev/mapper/control ]; 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" + /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p" fi fi if [ -x /sbin/dmraid ]; then modprobe dm-mirror >/dev/null 2>&1 - for x in $(/sbin/dmraid -ay -t --ignorelocking 2>/dev/null | egrep -iv "^[nN]o " | awk -F ':' '{ print $1 }') ; do + for x in $(/sbin/dmraid -ay -i -p -t 2>/dev/null | \ + egrep -iv "^no " | \ + awk -F ':' '{ print $1 }') ; do dmname=$(resolve_dm_name $x) - if [ -z "$dmname" ]; then - /sbin/dmraid -ay --ignorelocking "$x" - fi + [ -n "$dmname" ] && continue + /sbin/dmraid -ay -i -p "$dmname" >/dev/null 2>&1 + /sbin/kpartx -a -p p "/dev/mapper/$dmname" done fi |