c2f1a08cfd
Co-authored-by: maxice8 <thinkabit.ukim@gmail.com> fixes #10359 fixes #10358
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
|