add an upgrade message

This commit is contained in:
Christian Hesse 2022-08-29 09:58:32 +00:00
parent 07b020125e
commit 956a87fa80
2 changed files with 14 additions and 4 deletions

View File

@ -22,7 +22,7 @@ _commit='d9b4638c50b16d4722e66d334e2c1a674b4a45cc'
_pkgver=2.06.r322.gd9b4638c5
_unifont_ver='14.0.04'
pkgver=${_pkgver/-/}
pkgrel=2
pkgrel=3
url='https://www.gnu.org/software/grub/'
arch=('x86_64')
license=('GPL3')

View File

@ -7,6 +7,16 @@ post_upgrade() {
mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
fi
# Give a hint to update installation and configuration one after another.
cat <<EOM
:: To use the new features provided in this GRUB update, it is recommended
to install it to the MBR or UEFI. Due to potential configuration
incompatibilities, it is advised to run both, installation and generation
of configuration:
\$ grub-install ...
\$ grub-mkconfig -o /boot/grub/grub.cfg
EOM
# return if old package version greater 2:2.06-0...
(( $(vercmp $2 '2:2.06-0') > 0 )) && return
@ -21,8 +31,8 @@ EOM
post_install() {
cat <<EOM
:: Generate your bootloader configuration with:
grub-mkconfig -o /boot/grub/grub.cfg
:: Install your bootloader and generate configuration with:
\$ grub-install ...
\$ grub-mkconfig -o /boot/grub/grub.cfg
EOM
}