When installing Refind bootloader the install hangs
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Select REFIND as bootloader (EFI install)
2.proceed to end of install
3.will get message that bootloader is installing
The bootloader will stay stuck at that.
Restarting computer will verify that the bootloader did in fact install
Which iso did you use to install from, one of the Lives (which one?) or which classical iso?
If it was one of the Lives, then please attach journal.txt that is the result of running in that installed system, as root:
journalctl -ab1 > journal.txt
(Compress with xz if it's too large to attach)
((Note that on mga, you can compress it further by using "xz -9 --text"))
If it was a classical install, then please attach
from that installed system.
Installer never confirms that bootloader install completed. =>
Installer never confirms that (REFIND) bootloader install completed.CC:
First I installed Magaia 7rc on empty hard drive The boot loader did install even though it did not indicate that install was successful. I had to force restart the computer. I Then I shrank linux partition and installed windows. Windows of course took over the boot partiton via ESP I think. Finally I reinstalled Magaia expecting that the bootloader would overwrite the Windows bootloader. Unfortunately that did not happen so I tried going into the live DVD to see if I could reinstall the REFIND bootloader from there. Then I got this error. I get the same error when I install Magaia to an empty hard drive. So the REFIND boot loader never finishes installing.
The "drakboot" program has crashed with the following error:
ESP device is unknown at /usr/lib/libDrakX/bootloader.pm line 2441.
...propagated at /usr/lib/libDrakX/any.pm line 269.
...propagated at /usr/libexec/drakboot line 49.
drakbug::bug_handler() called from /usr/libexec/drakboot:49
Used theme: Adwaita
This is a Lenovo Ideapad320IAP
Installing Grub2 gave the exact same result. I am aware that there are a few lenovo specific bugs in grub. These few bugs may be making it very difficult for Magaia bootloaders to install.
Created attachment 11064 [details]
Contents of journal.txt after fresh install
Unfortunately, because you had to force a restart, the end of the journal is corrupt, and missing the information I need. Could I ask you to:
1. Boot to the Live desktop.
2. Open a Terminal window.
3. At the command line prompt type
draklive-install |& tee install.log
4. If/when the installer hangs, use Ctrl-C in the terminal window to kill it.
5. As root, run
journalctl -ab > journal.log
6. Attach both the install.log and journal.log files here (compress with xz if necessary)
Created attachment 11066 [details]
install.log - fresh install
it is attached
Created attachment 11067 [details]
Journal.log fresh install
it is attached
Installer never confirms that (REFIND) bootloader install completed. =>
Installer never confirms that (REFIND) bootloader install completed and the installer hangs.
Just to give a little background, Lenovo are infamous for not letting bootloaders write to uefi. just search for lenovo in the grub-installer package section in bugs/launchpad.net. A fix for this would help thousands of frustrated people who use certain Lenovos but would like to be able to install on a UEFI system. and maybe using secureboot later. Lenovo wont do the work to fix it. Lenovo seems only to care about supporting Linux on their expensive business models.
if you all can figure out a workaround for Lenovos that would be great. I think you all have actually done it, it is just that the installer does not end gracefully and does not confirm that the write task is completed. Maybe the installer should just know that for certain motherboards that is the normal result. Maybe to double check after the write attempt to see if the boot loader actually wrote despite the I/O error. I will say that when it hangs I let it hang for about 5 minutes to make sure the Boot loader writes. When I restart too quickly after the hang it doesnt write. the installer should have a progress bar during the bootloader install. There is too much tension at the moment of truth.
Whichever way EndlessOS does their installs should be looked at. They have figured out an installation approach that Workds with UEFI and Secureboot enabled on my crap Lenovo. I have never seen the endless OS installer fail on even the quirkiest of hardware.
These are Lenovo specific grub bugs which can also be found at Savannah server at the grub project. because these are Lenovo specfic bugs which ultimately have to do with certain Lenovo bios virtually all linux installs are affected. Again, EndlessOS has figured out what to do.
It occurred to me that maybe Lenovo expects a 5 minute writing time from Microsoft. Maybe their Bios only fights the write for a couple of minutes, and for security reasons never confirms the write or confirms the write in a way that only Windows recognizes. knowing that only Microsoft would keep hammering for 5 minutes.
Instead of letting it write indefinitely waiting for no error, let it loop for 5 minutes, end the loop, and then proceed on the assumption of successful write.
Interesting to see problem with Lenovo UEFI, as I have a UEFI/GPT Lenovo Thinkpad 11e with trouble-free rEFInd installed via 64-bit Plasma Classic .iso.
I'm not surprised. The higher end Lenovo are safe from these issues. Lenovo has made sure. It is the lower end models have been neglected.
From comment 2:
> First I installed Magaia 7rc on empty hard drive The boot loader did
> install even though it did not indicate that install was successful.
> tried going into the live DVD to see if I could reinstall the REFIND
> bootloader from there. Then I got this error. I get the same error when
> I install Magaia to an empty hard drive
This is puzzling: rEFInd was seemingly installed OK (if with no indication of same) on one virgin drive, but not on another.
> I had to force restart the computer
This implies that it did re-boot successfully. Did it?
It is known that the "click 'finish' to reboot" does not always work, but it is clear that the installation has gone to end. The root of this bug seems to be that you did not get that far.
> I installed Magaia 7rc
This rather implies the Classic ISO, but the information you attached for Martin implies that you used a Live ISO. I recently installed M7 Classic, choosing rEFInd bootloader (but not installing it, it was already there), and the installation went to end. I cannot remember for a Live ISO, but would have remarked a 'stuck' installation.
To see whether rEFInd has really been installed or not, the following commands can be used at any time from an installed Linux system:
# fdisk -l /dev/sd... [to show partitioning, the ESP]
# efibootmgr [to show EFI NVRAM]
# ls -lR /boot/EFI/EFI [to show contents of ESP]
(cut any lengthy Microsoft & refind directory output).
@Martin: from the Live desktop after installtion?
> I Then I shrank linux partition and installed windows
Did you try booting the machine (presumably via rEFInd) after shrinking the Mageia partition, before installing Windows?
Did you try installing Windows first (ideally leaving enough space for Mageia subsequently; or using Windows Disk Manager itself to free up enough space for Mageia - reboot Windows afterwards), then install Mageia in the free space?
After installing Windows after Mageia, did the machine boot directly to Windows?
I do not see why any hardware peculiarity would cause a disc-related problem. Installing rEFInd involves a few normal disc writes to the EFI System Partiton, no reason for a block here. I do not understand your mentions of 5m wait; a progress bar would be irrelevant.
OTOH Installing to a virgin unpartitioned disc would entail creating the ESP along with the OS partitions. If any work, they all would.
> Installing Grub2 gave the exact same result.
More likely, the EFI firmware might be difficult about writing to the NVRAM, essential for rEFInd and Grub2 as well as Windows.
You did not say whether you had Secure Boot, which should of course be DISabled for Mageia. If you really wanted to keep it with Windows, I imagine you would have to boot rEFInd via Windows.
This might be useful for you to investigate what is happening:
Some tests in your installed system, all done as root:
What output do you get?
Does that hang? If so, kill it.
3. Again run
Is there now a new entry similar to this:
(the four digit number is likely to be different).
4. If yes, run
efibootmgr -b 0004 -B
replacing 0004 with the four digit number you see in step 3.
If the root of the bug is that the click to reboot button never shows up then just work on that then. I can tell you for sure that there are bugs that prevent the bootloader from writing. I suppose those may never be addressed.
No, the root of the bug is whatever is causing the hang. "bugs that prevent the bootloader from writing" is not very precise. I'm trying to establish exactly where the problem lies, so we can decide if there's a sensible way to work around it. I don't think changing the installer to just ignore errors is an option.
Installer never confirms that (REFIND) bootloader install completed and the installer hangs. =>
Installer hangs at end of bootloader install step on some Lenovo machines (BIOS bug when writing to EFI NVRAM?)
Created attachment 11074 [details]
Script to test writing the rEFInd PreviousBoot NVRAM variable
Please also test the attached script by running as root:
and copy/pasting the output here. Does this also hang?
Hey guys, any progress here? ,https://tab.do/