2022-02-07 05:06:12 +01:00
|
|
|
packages() {
|
|
|
|
if [ "$EFI" == "1" ]; then
|
2022-02-07 19:29:15 +01:00
|
|
|
addpkg grub-x86_64-efi efibootmgr
|
2022-02-07 05:06:12 +01:00
|
|
|
else
|
|
|
|
addpkg grub
|
|
|
|
fi
|
2022-02-07 16:22:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
config() {
|
2022-02-07 19:10:58 +01:00
|
|
|
if [ "${EFI}" == "1" ]; then
|
2022-02-07 19:13:14 +01:00
|
|
|
grub-install
|
2022-02-07 19:34:20 +01:00
|
|
|
efibootmgr --create --disk "${TARGET_PHY_ID}-part1" --loader /EFI/void/grubx64.efi --label "Voidlinux" --verbose
|
2022-02-07 16:22:08 +01:00
|
|
|
else
|
2022-02-07 19:10:58 +01:00
|
|
|
grub-install "${TARGET_PHY_ID}"
|
2022-02-07 16:22:08 +01:00
|
|
|
fi
|
|
|
|
xbps-reconfigure -fa
|
2022-02-07 05:06:12 +01:00
|
|
|
}
|