This file is indexed.

/etc/kernel/prerm.d/last-good-boot is in grub 0.97-29ubuntu66.

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
#!/bin/sh
# Make sure a last-good-boot exists before removing any kernels.
if [ -x /usr/sbin/kernel-helper ]; then
	/usr/sbin/kernel-helper -i
fi