This file is indexed.

/usr/share/initramfs-tools/hooks/bootcdinitramfshook is in bootcd-mkinitramfs 3.27.

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

# See manpage initramfs-tools(8)
. /usr/share/initramfs-tools/hook-functions

PREREQ=""
prereqs()
{
    echo "$PREREQ"
}

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

printbin()
{
  if [ -f /sbin/discover ]; then echo "/sbin/discover"
  elif [ -f /bin/discover ]; then echo "/bin/discover"
  elif [ -f /usr/bin/discover ]; then echo "/usr/bin/discover"; fi
  ls /bin/grep

  ls /usr/share/discover/*.lst 2>/dev/null
  ls /usr/share/bootcd/bootcdmodprobe 2>/dev/null # see prerm
  ls /usr/share/bootcd/bootcdproberoot 2>/dev/null # see prerm
  ls $MODULESDIR/kernel/drivers/usb/host/*.*o 2>/dev/null # match *.o and *.ko
  ls $MODULESDIR/kernel/drivers/usb/core/usbcore.*o 2>/dev/null # used for 2.6
  ls $MODULESDIR/kernel/drivers/usb/usbcore.*o 2>/dev/null # used for 2.4
  ls $MODULESDIR/kernel/drivers/usb/storage/usb-storage.*o 2>/dev/null
  ls $MODULESDIR/kernel/drivers/cdrom/cdrom.*o 2>/dev/null
  ls $MODULESDIR/kernel/drivers/scsi/scsi_mod.*o 2>/dev/null
  ls $MODULESDIR/kernel/drivers/scsi/sr_mod.*o 2>/dev/null
  ls $MODULESDIR/kernel/fs/nls/*.*o 2>/dev/null

  # extra data for discover 2
  for i in libdiscover2 discover-data discover;
  do
    [ -f /var/lib/dpkg/info/$i.list ] || continue
    (
    cat /var/lib/dpkg/info/$i.list |
      grep -v "^/usr/share/doc" | # no docu
      grep -v "^/usr/share/man" | # no manpages
      grep -v "^/lib/"          | 
      grep -v "^/usr/lib/"      |
      grep -v "^/bin/"          | # goes to exe if needed
      grep -v "^/usr/bin/"      | # goes to exe if needed
      grep -v "^/sbin/"         | # goes to exe if needed
      grep -v "^/usr/sbin/"       # goes to exe if needed
    cat /var/lib/dpkg/info/$i.list |
      grep "/lib/discover/" # we need discover xml data
    ) |
    while read f; do
      [ -d $f ] && continue # no dirs
      echo "$f"
    done
  done
}

# Begin real processing below this line

manual_add_modules isofs
manual_add_modules cdrom

for i in $(printbin); do
  if  [ ! -e $DESTDIR/$i ]; then
    mkdir -p $DESTDIR/$(dirname $i)
    copy_exec $i $i
  fi
done