15 lines
303 B
Text
15 lines
303 B
Text
# grub: follows /etc/kernel.d/post-install/50-grub actions
|
|
case ${ACTION} in
|
|
post)
|
|
RESULT=0
|
|
if ! command -v grub-mkconfig >/dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ -d $ROOTDIR/boot/grub ]; then
|
|
grub-mkconfig -o $ROOTDIR/boot/grub/grub.cfg
|
|
RESULT=$?
|
|
fi
|
|
[ $RESULT -ne 0 ] && exit $RESULT
|
|
;;
|
|
esac
|