From 6f7a84649ef75069cc4fa06fabeb63e762e049d1 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 16 May 2016 16:13:33 +0000
Subject: grub: grub.install: use systemconfig to rebuild grub config to make
 sure we have splash setting

---
 abs/core/grub/PKGBUILD     | 2 +-
 abs/core/grub/__changelog  | 2 ++
 abs/core/grub/grub.install | 5 ++---
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/abs/core/grub/PKGBUILD b/abs/core/grub/PKGBUILD
index 6e3535f..58873b9 100644
--- a/abs/core/grub/PKGBUILD
+++ b/abs/core/grub/PKGBUILD
@@ -23,7 +23,7 @@ _UNIFONT_VER="6.3.20131217"
 pkgname="grub"
 pkgdesc="GNU GRand Unified Bootloader (2)"
 pkgver=2.02.beta2
-pkgrel=7
+pkgrel=8
 epoch=1
 url="https://www.gnu.org/software/grub/"
 arch=('x86_64' 'i686')
diff --git a/abs/core/grub/__changelog b/abs/core/grub/__changelog
index e7a69e6..a7fcd67 100644
--- a/abs/core/grub/__changelog
+++ b/abs/core/grub/__changelog
@@ -1,3 +1,5 @@
 PKGBUILD: change dep python to python2
 grub.default: set to LinHES colors and timeouts
 grub.install: add /boot/grub/locale/en.mo link to quiet error
+grup.install: call systemconfig.py -m advanced instead of grub-mkconfig directly
+                this will make sure the correct setting for the splash is picked up
diff --git a/abs/core/grub/grub.install b/abs/core/grub/grub.install
index 40e3078..ddd6681 100644
--- a/abs/core/grub/grub.install
+++ b/abs/core/grub/grub.install
@@ -13,10 +13,9 @@ post_install() {
 post_upgrade() {
   cat << 'EOM'
 Generating grub.cfg config file...
-This may fail on some machines running a custom kernel.
 EOM
-  
-  grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null
+
+  systemconfig.py -m advanced  
   echo "done."
 
   for file in ${filelist[@]}; do
-- 
cgit v0.12

