FS#60728 - [refind-efi] Refind 0.11.3-1 ignores PreviousBoot variable

Attached to Project: Arch Linux
Opened by Andrew Shark (ashark) - Wednesday, 07 November 2018, 01:23 GMT
Last edited by David Runge (dvzrv) - Wednesday, 22 April 2020, 12:00 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To David Runge (dvzrv)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Refind should highlight previously booted os, but since refind-efi v0.11.3-1 package it does not. The first boot entry is always highlighted.
https://www.rodsbooks.com/refind/configfile.html#default - how refind should behave.

I have checked this on desktop and laptop with the same result.
In version 0.11.2-1 this works correctly (previously booted entry is highlighted).
In version 0.11.3-1 refind always highlight first entry. But "cat /sys/firmware/efi/efivars/PreviousBoot-36d08fa7-cf0b-42f5-8f14-68df73ed3740" returns correct string that names priviously booted entry.

According to information screen in refind:
0.11.2-1 is built with GNU-EFI
0.11.3-1 is built with TianoCore EDK2
This task depends upon

Closed by  David Runge (dvzrv)
Wednesday, 22 April 2020, 12:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  refind 0.12.0-3 in [extra] replaces refind-efi
Comment by Andrew Shark (ashark) - Wednesday, 07 November 2018, 01:55 GMT
I have downloaded and tested from here https://www.rodsbooks.com/refind/getting.html both
refind-bin-0.11.3 (built with TianoCore, but refind_x64.efi md5sum differs from archlinux's 0.11.3-1 refind_x64.efi)
and refind-bin-gnuefi-0.11.3.

Both have this bug (always first entry highlighted).
Possibly, it is upstream bug?
Comment by nl6720 (nl6720) - Thursday, 08 November 2018, 15:15 GMT
It is an upstream bug, see https://sourceforge.net/p/refind/code/ci/d358c4ef96b75676f0dad9850df5d917d85b77e6/ .
It will be fixed in the next release. For now, if I understand that commit correctly, this should work:
default_selection +
Comment by Andrew Shark (ashark) - Friday, 23 November 2018, 15:10 GMT
A new version 0.11.4 was released (http://www.rodsbooks.com/refind/revisions.html)
It fixes this bug.
Please update refind-efi package in repository.
Comment by Tobias Powalowski (tpowa) - Friday, 23 November 2018, 15:36 GMT
11.4 does not compile at the moment.
Comment by Andrew Shark (ashark) - Monday, 26 November 2018, 15:33 GMT
Del. Sorry, accidentaly commented again after page updating.
Comment by Andrew Shark (ashark) - Thursday, 03 January 2019, 00:43 GMT
I have successfully built it if set _USE_GNU_EFI="1"
Comment by nl6720 (nl6720) - Friday, 04 January 2019, 13:05 GMT
For reference, the rEFInd developer can't reproduce the build failure ( https://sourceforge.net/p/refind/discussion/general/thread/0317e2e8/#6c15 ). So, unless someone provides a patch, nothing will change.

Loading...