add an upgrade message
This commit is contained in:
parent
07b020125e
commit
956a87fa80
2
PKGBUILD
2
PKGBUILD
@ -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')
|
||||
|
16
grub.install
16
grub.install
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user