void-packages/srcpkgs/kernel/INSTALL

15 lines
262 B
Plaintext

#
# This script updates the grub.cfg file for GRUB2.
#
case "${ACTION}" in
pre)
;;
post)
if [ -x usr/sbin/grub-mkconfig ]; then
echo "Updating grub2 configuration file..."
usr/sbin/grub-mkconfig -o boot/grub/grub.cfg
[ $? -ne 0 ] && exit $?
fi
;;
esac