This file is indexed.

postinst is in extlinux 3:4.05+dfsg-6+deb8u1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

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

set -e

. /usr/share/debconf/confmodule

case "${1}" in
	configure)
		db_get extlinux/install
		_INSTALL="${RET}" # boolean

		db_stop

		case "${_INSTALL}" in
			true)
				extlinux-update

				_DEVICE=""
				_PATH="/boot/extlinux"

				while true
				do
					_DEVICE="$(findmnt --canonicalize --noheadings --output SOURCE --raw ${_PATH}/ | sed -e 's|[0-9]||g')"

					if [ -n "${_DEVICE}" ] || [ -z "${_PATH}" ]
					then
						break
					fi

					_PATH="$(dirname ${_PATH})"
				done

				extlinux-install "${_DEVICE}"
				;;

			*)
				if [ -x /etc/kernel/postinst.d/zz-extlinux ]
				then
					/etc/kernel/postinst.d/zz-extlinux
				fi
				;;
		esac
		;;

	abort-upgrade|abort-remove|abort-deconfigure)

		;;

	*)
		echo "postinst called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac



exit 0