File: partition_multipath

package info (click to toggle)
partman-multipath 9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52 kB
  • sloc: sh: 35; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. /usr/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