File: multipath-scan.sh

package info (click to toggle)
dracut 005-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 207
  • sloc: sh: 6,487; ansic: 192; makefile: 108
file content (16 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# scan for multipaths if udev has settled

. /lib/dracut-lib.sh

[ -d /etc/multipath ] || mkdir -p /etc/multipath
mpdevs=$(
    for f in /tmp/.multipath-scan-* ; do
        [ -e "$f" ] || continue
        echo -n "${f##/tmp/.multipath-scan-} "
    done
)

[ -e /etc/multipath.conf ] || exit 1
multipath ${mpdevs}