/usr/share/initramfs-tools/hooks/multipath is in multipath-tools-boot 0.5.0-6+deb8u2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/sh
PREREQS="udev"
prereqs() { echo "$PREREQS"; }
case $1 in
prereqs)
prereqs
exit 0
;;
esac
if [ ! -x /sbin/multipath ]; then
exit 0
fi
. /usr/share/initramfs-tools/hook-functions
add_bindings()
{
if [ -r /etc/multipath/bindings ]; then
mkdir -p $DESTDIR/etc/multipath
cp /etc/multipath/bindings $DESTDIR/etc/multipath
fi
}
add_udev_rules()
{
for rules in 60-multipath.rules 60-kpartx.rules; do
if [ -e /lib/udev/rules.d/$rules ]; then
cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
fi
done
}
copy_exec /sbin/multipath /sbin
copy_exec /sbin/kpartx /sbin
copy_exec /sbin/dmsetup /sbin
copy_exec /lib/udev/dmsetup_env /lib/udev
copy_exec /lib/udev/kpartx_id /lib/udev
mkdir -p $DESTDIR/lib/multipath/
for x in /lib/multipath/*; do
copy_exec $x /lib/multipath/
done
add_udev_rules
[ -r /etc/multipath.conf ] && cp /etc/multipath.conf $DESTDIR/etc/
add_bindings
for x in dm-multipath dm-service-time dm-round-robin dm-emc; do
manual_add_modules ${x}
done
|