2022-02-07 05:06:12 +01:00
|
|
|
packages() {
|
|
|
|
if [ "$EFI" == "1" ]; then
|
2022-02-07 19:10:58 +01:00
|
|
|
addpkg grub-x86_64-efi
|
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
|
|
|
|
grub-install --bootloader-id="Void"
|
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
|
|
|
}
|