summaryrefslogtreecommitdiffstats
path: root/abs/core/grub/grub.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-21 23:19:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-21 23:19:48 (GMT)
commit29c799f2e3d33f5469ff15b1c6d0242dc00dd179 (patch)
tree7bbaab1d368edfb89b4a2d9945a63ff6d52743a5 /abs/core/grub/grub.install
parent59ed43b2b45b77e37088cae0e992a19e27116611 (diff)
downloadlinhes_pkgbuild-29c799f2e3d33f5469ff15b1c6d0242dc00dd179.zip
linhes_pkgbuild-29c799f2e3d33f5469ff15b1c6d0242dc00dd179.tar.gz
linhes_pkgbuild-29c799f2e3d33f5469ff15b1c6d0242dc00dd179.tar.bz2
grub: grub.install: regen grub on install and update
add link /boot/grub/locale/en.mo to quiet error grub.default: change to LinHES defaults
Diffstat (limited to 'abs/core/grub/grub.install')
-rw-r--r--abs/core/grub/grub.install21
1 files changed, 14 insertions, 7 deletions
diff --git a/abs/core/grub/grub.install b/abs/core/grub/grub.install
index 9188b35..40e3078 100644
--- a/abs/core/grub/grub.install
+++ b/abs/core/grub/grub.install
@@ -7,23 +7,30 @@ post_install() {
install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
fi
+ post_upgrade
+}
+
+post_upgrade() {
cat << 'EOM'
-Generating grub.cfg.example config file...
+Generating grub.cfg config file...
This may fail on some machines running a custom kernel.
EOM
- grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
+ grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null
echo "done."
for file in ${filelist[@]}; do
install-info ${infodir}/${file}.gz ${infodir}/dir 2> /dev/null
done
-}
-post_upgrade() {
- for file in ${filelist[@]}; do
- install-info ${infodir}/${file}.gz ${infodir}/dir 2> /dev/null
- done
+ if [[ -d /boot/grub/locale ]] && [[ ! -a /boot/grub/locale/en.mo ]]; then
+ cat << 'EOM'
+Creating link /boot/grub/locale/en.mo ...
+EOM
+ cd /boot/grub/locale
+ ln -s "en@quot.mo" "en.mo"
+ echo "done."
+ fi
}
pre_remove() {