This commit is contained in:
teldra 2022-02-07 16:22:08 +01:00
parent 5f33c4ccea
commit 6ce9a0476c
3 changed files with 10 additions and 2 deletions

View File

@ -44,6 +44,4 @@ echo "$USERNAME:$pass" | chpasswd
passwd -dl root
grub-install $TARGET_PHY_ID
xbps-reconfigure -fa
}

View File

@ -4,4 +4,13 @@ packages() {
else
addpkg grub
fi
}
config() {
if [ "$EFI" == "1" ]; then
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Void"
else
grub-install $TARGET_PHY_ID
fi
xbps-reconfigure -fa
}

View File

@ -338,6 +338,7 @@ do_chroot() {
echo "HOSTNAME=$HOSTNAME" >> ${target}/tmp/vinstaller/vars
echo "EFI=$EFI" >> ${target}/tmp/vinstaller/vars
echo "LANGUAGE=$LANGUAGE" >> ${target}/tmp/vinstaller/vars
echo "L1=$L1" >> ${target}/tmp/vinstaller/vars
echo "TARGET_PHY_ID=$TARGET_PHY_ID" >> ${target}/tmp/vinstaller/vars
echo "TARGET_PART=$TARGET_PART" >> ${target}/tmp/vinstaller/vars
echo "TARGETNAME_UNDERSCORE=$TARGETNAME_UNDERSCORE" >> ${target}/tmp/vinstaller/vars