20 lines
438 B
Plaintext
20 lines
438 B
Plaintext
packages() {
|
|
if [ "$EFI" == "1" ]; then
|
|
addpkg grub-x86_64-efi efibootmgr
|
|
else
|
|
addpkg grub
|
|
fi
|
|
}
|
|
|
|
config() {
|
|
if [ "${EFI}" == "1" ]; then
|
|
grub-install
|
|
#efibootmgr --create --disk "${TARGET_PHY_ID}-part1" --loader /EFI/void/grubx64.efi --label "Voidlinux" --verbose
|
|
else
|
|
grub-install "${TARGET_PHY_ID}"
|
|
fi
|
|
lv=$(xbps-query linux|grep pkgver|awk '{print $2}')
|
|
lv1="${lv//-/}"
|
|
lv2="${lv1%_*}"
|
|
xbps-reconfigure -f "${lv2}"
|
|
} |