Merge pull request #19 from teh-jazzman/master
Option not to install a bootloader
This commit is contained in:
commit
a5e1dabeb7
@ -419,7 +419,7 @@ set_rootpassword() {
|
||||
menu_bootloader() {
|
||||
while true; do
|
||||
DIALOG --title " Select the disk to install the bootloader" \
|
||||
--menu "$MENULABEL" ${MENUSIZE} $(show_disks)
|
||||
--menu "$MENULABEL" ${MENUSIZE} $(show_disks) none "Manage bootloader otherwise"
|
||||
if [ $? -eq 0 ]; then
|
||||
set_option BOOTLOADER "$(cat $ANSWER)"
|
||||
BOOTLOADER_DONE=1
|
||||
@ -433,6 +433,8 @@ menu_bootloader() {
|
||||
set_bootloader() {
|
||||
local dev=$(get_option BOOTLOADER) grub_args=
|
||||
|
||||
if [ "$dev" = "none" ]; then return; fi
|
||||
|
||||
# Check if it's an EFI system via efivars module.
|
||||
if [ -n "$EFI_SYSTEM" ]; then
|
||||
grub_args="--target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=void_grub --recheck"
|
||||
|
Loading…
x
Reference in New Issue
Block a user