File: partition_multipath

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 (18 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. /lib/partman/lib/base.sh

disable_swap

for dev in $DEVICES/*; do
	[ -d "$dev" ] || continue
	cd $dev

	[ -f device ] || continue
	[ -f multipath ] || continue

	# update partition mappings
	kpartx -d -p -part $(cat device)
	kpartx -a -p -part $(cat device)
done