ports/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in
Kevin Lo 310466c582 sysutils/grub2-pcbsd: fix build with gcc10
Revive grub2-pcbsd and grub2-efi ports.
Thanks to lwhsu for valuable input.
Approved by:	lwhsu
2021-07-06 19:57:08 +08:00

14 lines
362 B
Text

--- util/grub-mkconfig.in.orig 2015-06-03 14:54:01 UTC
+++ util/grub-mkconfig.in
@@ -281,3 +281,11 @@ fi
gettext "done" >&2
echo >&2
+
+# If pcbsd-utils are installed, the restamp-grub command will exist
+# Use it to do the grub-install and copy grub.cfg to other BEs
+which restamp-grub >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ restamp-grub
+fi
+