updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / grub2-bios-bzr / grub2-bios-bzr.install
blob67610ebb831341e1528166a28168aad067001c75
1 _trns_name="grub"
3 infodir="usr/share/info"
4 filelist=('grub.info' 'grub-dev.info')
6 post_install() {
7         
8         if [[ -f "/boot/grub/grub.cfg.pacsave" ]]; then
9                 echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
10                 install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
11         fi
12         
13         echo
14         echo -n "Read the GRUB2 Archwiki page at https://wiki.archlinux.org/index.php/GRUB2#BIOS_systems "
15         echo "for instructions on updating the grub2 modules and core.img at /boot/grub/ . "
16         echo
17         echo -n "This step is not done automatically during package installation "
18         echo
19         
20         echo
21         echo -n "Generate a new grub2-bios config file /boot/grub/grub.cfg by running "
22         echo
23         echo
24         echo -n "    GRUB_PREFIX=\"/boot/grub\" grub-mkconfig -o /boot/grub/grub.cfg "
25         echo
26         echo
27         
28         for file in ${filelist[@]}; do
29                 install-info "${infodir}/${file}.gz" "${infodir}/dir" 2> /dev/null
30         done
31         
34 post_upgrade() {
35         
36         post_install
37         
40 pre_remove() {
41         
42         for file in ${filelist[@]}; do
43                 install-info --delete "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
44         done
45