Nitrux / calamares-qml

The Calamares installer but in QML.
GNU General Public License v3.0
1 stars 1 forks source link

GRUB fails to create EFI bootloader entry when choosing Replace or Install alongside #2

Open UriHerrera opened 4 years ago

UriHerrera commented 4 years ago

Describe the bug The installer fails to add the EFI bootloader entry for the installed system when the option selected is either Replace or Install alongside. The command executed is grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --force and the error reads grub-install: error: cannot find a device for /boot/grub (is /dev mounted?).

To Reproduce Steps to reproduce the behavior:

  1. Boot ISO
  2. Open the installer and choose to install the system
  3. Installer crashes when adding the EFI bootloader entry

Expected behavior Installation succeeds.

Screenshots VirtualBox_Nitrux (Cubic)_03_08_2020_15_01_55

Desktop (please complete the following information):

Notes This bug is triggered after the problem described in issue #1 is bypassed. And, just like the problem in #1 this bug is non-existent if the option Erase disk is selected.

UriHerrera commented 3 years ago

Update

I just recently came across this issue with the standard Calamares installer. It turns out that this is possibly a problem caused by an error of some kind (I don't know how to debug this correctly) caused by a combination of libkpmcore, dosfstools, and Calamares that causes Calamares to fail to install GRUB to the target device. Most importantly is that it happened even when selecting Erase disk.

During this most recent occurrence, the version of libkpmcore was 20.12.3, dosfstools 4.2, and Calamares 3.2.36. Using a previous version of libkpmcore (20.12.2) and dosfstools (4.1) with the same version of Calamares, the distribution is installed correctly.

There's no record of what version of libkpmcore and dosfstools was being used on this date, but the behavior is exactly the same. With that said, it's possible that this isn't a bug in Calamares-qml but in libkpmcore itself.