#!/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