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