2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2023-01-27 08:08:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2012-06-25 11:35:35 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
build ()
|
|
|
|
{
|
2022-12-21 11:05:27 +01:00
|
|
|
map add_binary grub-editenv grub-fstest grub-menulst2cfg \
|
2013-05-22 09:49:52 +02:00
|
|
|
grub-mkimage grub-mklayout grub-mkpasswd-pbkdf2 grub-mkrelpath \
|
2022-12-21 11:05:27 +01:00
|
|
|
grub-script-check grub-bios-setup \
|
2022-01-30 12:17:48 +01:00
|
|
|
grub-ofpathname grub-probe grub-kbdcomp grub-mkrescue grub-mkstandalone grub-install \
|
2022-03-14 21:32:33 +01:00
|
|
|
grub-mkconfig grub-mknetdir grub-reboot grub-set-default
|
2012-06-25 11:35:35 +02:00
|
|
|
## add grub-mkconfig helper scripts
|
2022-03-14 21:32:33 +01:00
|
|
|
map add_file "/usr/share/grub/grub-mkconfig_lib" "/etc/default/grub"
|
2022-02-01 12:33:36 +01:00
|
|
|
add_full_dir "/etc/grub.d"
|
2022-01-06 18:00:16 +01:00
|
|
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
|
|
|
# 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
|
2022-03-14 21:32:33 +01:00
|
|
|
map add_full_dir /usr/lib/grub/i386-pc /usr/lib/grub/x86_64-efi
|
2022-01-06 18:00:16 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "$(uname -m)" == "aarch64" ]]; then
|
|
|
|
# add aarch64 arm64-efi files
|
|
|
|
add_full_dir /usr/lib/grub/arm64-efi
|
|
|
|
fi
|
2012-06-25 11:35:35 +02:00
|
|
|
|
2018-06-26 18:01:22 +02:00
|
|
|
## add grub(2) unicode font file
|
2022-01-13 20:56:11 +01:00
|
|
|
add_file "/usr/share/grub/unicode.pf2"
|
2012-06-25 11:35:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2021-10-04 11:13:50 +02:00
|
|
|
This hook includes grub(2) on an archboot image.
|
2012-06-25 11:35:35 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|
|
|
|
|
2023-01-27 08:08:28 +01:00
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|