This file is indexed.

/usr/share/initramfs-tools/hooks/kpartx is in kpartx-boot 0.7.4-2ubuntu3.

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

PREREQS="udev"

prereqs() { echo "$PREREQS"; }

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

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
cp -p /lib/udev/rules.d/56-dm-parts.rules $DESTDIR/lib/udev/rules.d/
cp -p /lib/udev/rules.d/68-del-part-nodes.rules $DESTDIR/lib/udev/rules.d/
cp -p /lib/udev/rules.d/95-kpartx.rules $DESTDIR/lib/udev/rules.d/