HP EliteBook 840 G7 stuck at "rEFInd - Initializing..."
-
We recently got in a batch of HP Elitebook 840 G7 laptops. I discovered these did not have BIOS, only UEFI.
I configured:
-
Option 67 to ‘ipxe.efi’
-
Disabled secure boot
Began imaging process and device appeared to reimage successfully and quickly, but upon reboot it got stuck on a “rEFInd - Initializing…” screen.
Researched this on the forum. Tested adding alternate versions of ‘refind_x64.efi’ file manually to /var/www/html/fog/service/ipxe.
Results:
v12.0 - stuck at same screen
v11.5 - stuck at the same screen
v10.9 - loaded an ‘rEFInd - About’ screen, but the Main Menu had no option to boot to OSCurrent FOG Setup is running Version 1.5.9.
How can I resolve this issue?
-
-
@tech04 While it’s not directly stuck at iPXE you still might try using a different binary like
snponly.efi
just to see if it makes a difference. -
@sebastian-roth I’m sorry, I am unsure what you mean. Are you saying to configure Option 67 with snponly.efi?
-
@tech04 said in HP EliteBook 840 G7 stuck at "rEFInd - Initializing...":
Are you saying to configure Option 67 with snponly.efi
yes
-
@george1421 Tried this, but received same result. Device imaged, but after rebooting brought up the ‘rEFInd - Initializing’ screen.
-
@tech04 When we have issues with refind we recommend to roll back to 0.11.0. I’m not sure its going to fix your issue but its worth a shot. Also make sure your firmware is up to date on the target computer.
What is happening is refind is stalling out trying to boot on that hardware. This is an issue specifically between refind and the hardware.
-
@george1421 As initially posted the OP already tried different versions but only the really old one worked.
@tech04 Make sure your UEFI firmware is the latest available! Using that old version is one option you have. The other one is compiling rEFInd from source and adding debug statements to find out where exactly it stucks and talk to the developer. We can help you with that but it’s in your hand. We don’t have the hardware.
-
I’d recommend looking at the configuration file for refind and seeing if making changes within the file helps out even with newer refind versions.
I think this only because I believe “new” versions of refind add functionality that did not exist with the older versions.
https://forums.fogproject.org/topic/11146/refind-initializing-after-disable-secure-boot/8
This post kind of describes what things to look for.
Particularly of interest, I believe you would want to change scanfor line from:
scanfor netboot,internal
to possiblyscanfor netboot,hdbios,internal
.The next change will likely be the scan_delay option. It currently defaults to 0. I would recommend adding a 5 second delay here as this is likely what’s hanging the initialization. 0 means don’t wait for any time to start looking for boot devices. So while it’s initializing, it’s also expecting to find the drives (which may not be ready yet).
I would recommend setting the timeout from -1 to 5 as well just so you can ensure all is working. If it works with either (or or and) scan_delay and scanfor, then reset the timeout to -1 to automatically and immediately boot to the first found item.
-
I spend most of my day yesterday on another matter. Back to work on this issue today.
@tom-elliott I made the suggested changes and ended up with this screen:
Hitting different keys did nothing. It remained stuck on this screen.
-
@sebastian-roth I updated the firmware on the device, but am still getting the same screen as the previously-posted screenshot.
-
@tech04 You can look up all the available parameters for this
scanfor
option on the rEFInd website. Try different combinations and maybe even try the parametermanual
and add so called “Manual Boot Stanzas” (see in the link posted). -
@sebastian-roth It occurred to me that I was imaging with a golden image that had been created with a vm that used BIOS. I created a new vm using EFI and created a new base image. Reimaged with this image, but it still seemed to get hung up at a rEFInd screen. Later, I saw the OS did end up loading.
Tinkered around with this some as it still seems to get hung up at rEFInd. I edited the scanfor to manual and added a menu entry for Windows. Got this:
-
@tech04 said in HP EliteBook 840 G7 stuck at "rEFInd - Initializing...":
I edited the scanfor to manual and added a menu entry for Windows.
What does the menu entry look like exactly?
By the way, which version of rEFInd do you use now?
-
@sebastian-roth Here’s the menu entry. It’s a Windows 10 image - I just didn’t update the entry name.
Using rEFInd Version 0.11.4.
-
-
Started today with rEFInd Version 0.11.04, scanfor set to manual, menuentry for Windows. LT would get to a rEFInd menu, but would fail to load Windows.
Error: Not Found while loading bootmgfw.efi. -
Changed to rEFInd Version 0.12.0. LT got stuck at rEFInd - Initializing…
-
Edited refind.conf to scanfor netboot, internal and disabled manual menu entry. LT got stuck at rEFInd - Initializing…
-
Edited boot order of LT to boot to disk first and it loaded the OS.
There seems to be an issue going from pxe boot to hard disk. Once the network boot times out and tries to boot to the hard disk it encounters difficulty at the rEFInd stage.
-
-
@tech04 Have you tried adjusting the scan_delay?
It really feels like refind cannot find the drives. So if it’s set to 0 the and doesn’t find anything, how would it get past initializing?
I could be wrong of course. I’m not seeing all the differences.
-
@tom-elliott Yes, I have the scan_delay set to 5. Timeout is also set to 5.
-
@tech04 Okay,
So there’s 2 main efforts for EFI booting that you could attempt:
- rEFInd - which isn’t working. Maybe you can try v10.9, not sure if you tried all three versions?
- Try setting the machine’s Host exit type to Exit? Specifically the EFI exit type?
-
@tom-elliott Some further testing:
-
Changed to rEFInd Version 10.9. The rEFInd - Initializing screen came up, but then said Scanning for boot loaders; please wait… LT stayed at this screen.
-
Changed Host EFI Exit Type for this host to EXIT. Got message
Chainloading failed, hit ‘s’ for the iPXE shell; reboot in 10 seconds.
Device would reboot, then do it all over again. -
Changed to rEFInd Version 11.0. Still got the ‘Chainloading…’ message.
-
Turned off EXIT for the host. The rEFInd - Initializing screen came up and went to a ‘Scanning for boot loaders; please wait…’ message. It stayed there.
rEFInd just does not want to load Windows for some reason. I saw this thread which referenced a comment on Reddit that non-signed kernels have trouble chainloading to a signed Windows kernel.
Could this be the issue I am dealing with? If so, what can I do to resolve this?
-
-
@tech04 If secure boot is disabled on the machine, maybe re-enable it now that imaging is done?