This file is indexed.

/usr/share/initramfs-tools/hooks/copymods is in cloud-initramfs-copymods 0.27ubuntu1.

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

prereqs() {
	local o="/scripts/init-bottom/overlayroot"  p=""
	for p in "$DESTDIR/" ""; do
		[ -e "$p$o" ] && echo "overlayroot" && return 0
	done
}

[ "$1" = "prereqs" ] && { prereqs; exit; }

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

# vi: ts=4 noexpandtab