This file is indexed.

/usr/share/doc/live-debconfig/examples/preseed.sh is in live-debconfig-doc 4.0~alpha31-1.

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

_PRESEED_FILE="preseed.cfg"

cat > "${_PRESEED_FILE}" << EOF
# live-debconfig ($(cat ../VERSION))

live-debconfig live-debconfig/components multiselect 
EOF

for _COMPONENT in $(ls ../components/????-* | grep -v ".templates")
do
	_COMPONENT_NAME="$(basename ${_COMPONENT} | sed -e 's|^[0-9][0-9][0-9][0-9]-||')"

cat >> "${_PRESEED_FILE}" << EOF

# ${_COMPONENT_NAME}
EOF

	for _DEBCONF in $(grep db_get ${_COMPONENT} | sed -e 's|.*db_get ||' -e 's|&&.*$||')
	do
		if ! grep -qs "live-debconfig ${_DEBCONF}" "${_PRESEED_FILE}"
		then
			if echo "${_DEBCONF}" | grep -qs '\{'
			then
				_COMMENT="#"
				_TYPE=""
			else
				_COMMENT=""
				_TYPE=" $(grep -A1 -m1 "^Template: ${_DEBCONF}" ../components/*-${_COMPONENT_NAME}.templates | awk '/^Type: / { print $2 }')"
			fi


			echo "${_COMMENT}live-debconfig ${_DEBCONF}${_TYPE} " >> "${_PRESEED_FILE}"
		fi
	done
done