This file is indexed.

/usr/share/initramfs-tools/hooks/iscsi is in open-iscsi 2.0.873+git0.3b4b4500-14ubuntu3.

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

PREREQ="udev"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

if [ -r /etc/initramfs-tools/conf.d/open-iscsi ] ; then
	. /etc/initramfs-tools/conf.d/open-iscsi
fi

if [ x"$NO_ISCSI_IN_INITRAMFS" = x"yes" ] ; then
	exit 0
fi

# Hooks for loading iscsi bits into the initramfs
. /usr/share/initramfs-tools/hook-functions

copy_exec /sbin/iscsistart /sbin
cp /etc/iscsi/initiatorname.iscsi $DESTDIR/etc
if [ -r /etc/iscsi/iscsi.initramfs ] ; then
	cp /etc/iscsi/iscsi.initramfs $DESTDIR/etc
fi

for x in crc32c libcrc32c iscsi_tcp libiscsi scsi_transport_iscsi iscsi_ibft; do
	manual_add_modules ${x}
done