Option not to install a bootloader
Unified · Split
| @@ -419,7 +419,7 @@ set_rootpassword() { · 418 unmodified lines | |||
| 419 | menu_bootloader() { | 419 | menu_bootloader() { |
| 420 | while true; do | 420 | while true; do |
| 421 | DIALOG --title " Select the disk to install the bootloader" \ | 421 | DIALOG --title " Select the disk to install the bootloader" \ |
| 422 | --menu "$MENULABEL" ${MENUSIZE} $(show_disks) | 422 | --menu "$MENULABEL" ${MENUSIZE} $(show_disks) none "Manage bootloader otherwise" |
| 423 | if [ $? -eq 0 ]; then | 423 | if [ $? -eq 0 ]; then |
| 424 | set_option BOOTLOADER "$(cat $ANSWER)" | 424 | set_option BOOTLOADER "$(cat $ANSWER)" |
| 425 | BOOTLOADER_DONE=1 | 425 | BOOTLOADER_DONE=1 |
| @@ -433,6 +433,8 @@ menu_bootloader() { · 7 unmodified lines | |||
| 433 | set_bootloader() { | 433 | set_bootloader() { |
| 434 | local dev=$(get_option BOOTLOADER) grub_args= | 434 | local dev=$(get_option BOOTLOADER) grub_args= |
| 435 | 435 | ||
| 436 | if [ "$dev" = "none" ]; then return; fi | ||
| 437 | |||
| 436 | # Check if it's an EFI system via efivars module. | 438 | # Check if it's an EFI system via efivars module. |
| 437 | if [ -n "$EFI_SYSTEM" ]; then | 439 | if [ -n "$EFI_SYSTEM" ]; then |
| 438 | grub_args="--target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=void_grub --recheck" | 440 | grub_args="--target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=void_grub --recheck" |