blob: 503d4e7cd374db830e0d69daa1ff62d1a49f436d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
post_upgrade() {
# We used to package /boot/grub/grub.cfg, but there is no reason to.
# Remove the file from package, but move real file back in place.
if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
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
}
post_install() {
cat <<EOM
:: Install your bootloader and generate configuration with:
\$ grub-install ...
\$ grub-mkconfig -o /boot/grub/grub.cfg
EOM
}
|