diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2021-07-06 19:57:08 +0800 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2021-07-06 19:57:08 +0800 |
commit | 310466c582bf8c7b816ecdf1d26234189aaa3c11 (patch) | |
tree | 05aae9b561d28d97f62c59638add200bedeb26e1 /sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in | |
parent | games/cataclysm-dda: update to 0.F (diff) |
sysutils/grub2-pcbsd: fix build with gcc10
Revive grub2-pcbsd and grub2-efi ports.
Thanks to lwhsu for valuable input.
Approved by: lwhsu
Diffstat (limited to 'sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in')
-rw-r--r-- | sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in b/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in new file mode 100644 index 000000000000..3fb66966ecc0 --- /dev/null +++ b/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in @@ -0,0 +1,14 @@ +--- 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 ++ |