This file is indexed.

postinst is in qemu-system-x86 1:2.11+dfsg-1ubuntu7.

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

set -e

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
dpkg-maintscript-helper rm_conffile /etc/init.d/qemu-system-x86 1:2.2+dfsg-3~ -- "$@"
if [ configure = "$1" ] && dpkg --compare-versions "$2" le-nl 1:2.2+dfsg-3~; then update-rc.d qemu-system-x86 remove >/dev/null; fi
dpkg-maintscript-helper rm_conffile /etc/qemu/target-x86_64.conf 1:2.4+dfsg-1~ -- "$@"
[ -d /etc/qemu ] && rmdir /etc/qemu 2>/dev/null || :


# If the host had already installed kvm_intel.ko without nested=1, then
# re-load it now, honoring whatever is in qemu-system-x86.modprobe
if [ "$1" = configure ] ; then
	INTEL_NESTED=/sys/module/kvm_intel/parameters/nested
	if grep -q kvm_intel /proc/modules && [ -f $INTEL_NESTED ]; then
		v=`cat $INTEL_NESTED`
		if [ "x$v" != "xY" ]; then
			rmmod kvm_intel && modprobe kvm_intel || true
		fi
	fi
fi

exit 0