#!/bin/sh

[ -f /target/etc/fstab ] || exit 0

# During d-i, the multipath disk-partition separator is 'p' (see commit.d/partition_multipath).
# For the target, it's '-part' (see kpartx udev rules installed by src:multipath-tools).
sed 's:^\(/dev/mapper/mpath[0-9]\+\)p:\1-part:' -i /target/etc/fstab
