#!/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
	# (use 'p' as multipath disk-partition separator because
	#  parted_server/libparted creates the block devices and
	#  lists multipath partitions with it for any components
	#  of the installer; i.e., /dev/mapper/mpathXpY all over)
	kpartx -d -p p $(cat device)
	kpartx -a -p p $(cat device)
 done
 
# exit code independent of for-loop
exit 0

