File: 60multipath

package info (click to toggle)
partman-multipath 2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 56 kB
  • ctags: 1
  • sloc: sh: 49; makefile: 26
file content (21 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ $(multipath -l | grep '^mpath[0-9]\+' | wc -l) -eq 0 ]; then
	exit 0
fi

apt-install multipath-tools-boot || true

if [ -r /etc/multipath.conf ]; then
	cp /etc/multipath.conf /target/etc/multipath.conf
fi

# copy over the persistent binding
if [ -r /var/lib/multipath/bindings ]; then
	mkdir -p /target/var/lib/multipath
	cp /var/lib/multipath/bindings /target/var/lib/multipath/
fi

# the initramfs will be updated by the kernel installation