diff options
Diffstat (limited to 'abs/core/grub/grub.install')
-rw-r--r-- | abs/core/grub/grub.install | 21 |
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() { |