This file is indexed.

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

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