This file is indexed.

/usr/share/initramfs-tools/hooks/multipath is in multipath-tools-boot 0.5.0+git1.656f8865-5ubuntu2.

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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/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_wwids()
{
  if [ -r /etc/multipath/wwids ]; then
      mkdir -p $DESTDIR/etc/multipath
      cp /etc/multipath/wwids $DESTDIR/etc/multipath
  fi
}

add_udev_rules()
{
  for rules in 56-dm-mpath-lvm.rules 95-multipath.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
copy_exec /usr/bin/partx
add_udev_rules

copy_exec /sbin/multipathd 		/sbin
# multipathd requires libgcc_s.so.1 (not handled by copy_exec() as it's dlopen()'ed).
# hack: find libgcc_s.so.1 via ldconfig cache (dpkg-architecture pulls lots of deps).
for x in $(ldconfig --print-cache | grep -o '/lib/.*/libgcc_s\.so\.1'); do
    copy_exec $x $(dirname $x)
done
# multipathd requires /var/run/multipathd.pid
mkdir -p $DESTDIR/var/run

[ -r /etc/multipath.conf ] && cp /etc/multipath.conf $DESTDIR/etc/
add_bindings
add_wwids

for x in dm-multipath dm-service-time dm-round-robin dm-emc; do
	manual_add_modules ${x}
done