updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / grub2-efi-bzr / grub2-efi-bzr.install
blobc996a2fc2f37d8c8d5075bedea8be0ff476558d5
1 _UEFI_ARCH=""
2 _trns_name=""
4 infodir="usr/share/info"
5 filelist=('grub.info' 'grub-dev.info')
7 post_install() {
8         
9         for file in ${filelist[@]}; do
10                 install-info "${infodir}/${file}.gz" "${infodir}/dir" 2> /dev/null
11         done
12         
13         echo
14         
15         cat << EOF
17 Read the GRUB2 Archwiki page at https://wiki.archlinux.org/index.php/GRUB2#UEFI_systems
18 for instructions on updating the grub2 modules and core.efi at /boot/efi/efi/${_trns_name}/ .
20 Just replace :-
22   grub2_efi_${_UEFI_ARCH}-install with ${_trns_name}-install
24   grub-mkstandalone with ${_trns_name}-mkstandalone
26   grub-mkimage with ${_trns_name}-mkimage
28   /usr/lib/grub/${_UEFI_ARCH}-efi with /usr/lib/${_trns_name}/${_UEFI_ARCH}-efi
30   /boot/efi/efi/grub/core.efi with /boot/efi/efi/${_trns_name}/core.efi
32 This step is not done automatically during package installation
34 All the GRUB2 UEFI utilities in this package have been renamed as ${_trns_name}-* instead of the grub-* (in the extra/grub2-common package)
36 An example config file has been installed at /usr/share/${_trns_name}/grub.cfg.uefi.example
38 Generate a new grub2-uefi config file /boot/efi/efi/${_trns_name}/grub.cfg by running
40     GRUB_PREFIX="/boot/efi/efi/${_trns_name}" ${_trns_name}-mkconfig -o /boot/efi/efi/${_trns_name}/grub.cfg
42 EOF
43         
44         echo
45         
48 post_upgrade() {
49         
50         post_install
51         
54 pre_remove() {
55         
56         for file in ${filelist[@]}; do
57                 install-info --delete "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
58         done
59