vinstaller/etc/bootloader/grub

20 lines
438 B
Plaintext
Raw Normal View History

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 20:00:29 +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
2022-02-07 20:00:29 +01:00
lv=$(xbps-query linux|grep pkgver|awk '{print $2}')
lv1="${lv//-/}"
lv2="${lv1%_*}"
xbps-reconfigure -f "${lv2}"
2022-02-07 05:06:12 +01:00
}