archboot/usr/lib/initcpio/install/archboot_grub

48 lines
1.4 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
2012-06-25 11:35:35 +02:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
2013-05-22 09:49:52 +02:00
apps="grub-editenv grub-fstest grub-menulst2cfg grub-mkfont \
grub-mkimage grub-mklayout grub-mkpasswd-pbkdf2 grub-mkrelpath \
2013-11-13 15:03:17 +01:00
grub-mount grub-script-check grub-bios-setup \
2013-05-22 09:49:52 +02:00
grub-ofpathname grub-probe"
2012-06-25 11:35:35 +02:00
for i in $apps; do
add_binary "$i"
done
2013-05-21 15:14:53 +02:00
appfiles="/usr/bin/grub-kbdcomp /usr/bin/grub-mkrescue /usr/bin/grub-mkstandalone /usr/bin/grub-install \
/usr/bin/grub-mkconfig /usr/bin/grub-mknetdir /usr/bin/grub-reboot /usr/bin/grub-set-default"
2012-06-25 11:35:35 +02:00
for i in $appfiles; do
add_file "$i"
done
## add grub-mkconfig helper scripts
add_file "/usr/share/grub/grub-mkconfig_lib"
add_file "/etc/default/grub"
for i in $(find /etc/grub.d/* ! -type d); do
add_file "$i"
done
2012-08-30 15:45:42 +02:00
# add bios and x86_64-efi files
# i386 efi is very rare. They are only used in old Macs,
# in which the kernel itself has issues booting in EFI mode
add_full_dir /usr/lib/grub/i386-pc
add_full_dir /usr/lib/grub/x86_64-efi
2012-06-25 11:35:35 +02:00
2018-06-26 18:01:22 +02:00
## add grub(2) unicode font file
add_file "/usr/share/grub/unicode.pf2"
2012-06-25 11:35:35 +02:00
## add grub(2) en.mo locale file
add_file "/usr/share/locale/en@quot/LC_MESSAGES/grub.mo" "/boot/grub/locale/en.mo"
}
help ()
{
cat<<HELPEOF
This hook includes grub(2) on an arch boot image.
HELPEOF
}