diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-05-16 16:24:28 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-05-16 16:24:28 (GMT) |
commit | fff4c50d3a1d94c807604d6c21355993dfb95c85 (patch) | |
tree | 390f0eb0781b2599449edbdafbeb6aaba34200dc /abs/core/grub/grub.install | |
parent | 8de064f6e96f960cdbfe6868d9957a4613f704df (diff) | |
parent | 6f7a84649ef75069cc4fa06fabeb63e762e049d1 (diff) | |
download | linhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.zip linhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.tar.gz linhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/grub/grub.install')
-rw-r--r-- | abs/core/grub/grub.install | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/abs/core/grub/grub.install b/abs/core/grub/grub.install index 9188b35..ddd6681 100644 --- a/abs/core/grub/grub.install +++ b/abs/core/grub/grub.install @@ -7,23 +7,29 @@ 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... -This may fail on some machines running a custom kernel. +Generating grub.cfg config file... EOM - - grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null + + systemconfig.py -m advanced 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() { |