vinstaller/etc/bootloader/grub
2022-02-07 19:24:21 +01:00

17 lines
340 B
Plaintext

packages() {
if [ "$EFI" == "1" ]; then
addpkg grub-x86_64-efi
else
addpkg grub
fi
}
config() {
if [ "${EFI}" == "1" ]; then
grub-install
efibootmgr --create --disk "${TARGET_PHY_ID}-${TARGET_PART}" --loader /EFI/void/grubx64.efi --label "Voidlinux" --verbose
else
grub-install "${TARGET_PHY_ID}"
fi
xbps-reconfigure -fa
}