rEFInd does not do an exact string match but will match the first volume it finds that contains the sub-string defined under default_selection.
The current unreleased RefindPlus code base first loops through all volumes looking for an exact string match and only does the substring match if this fails. It would be in the next release and the aim is to ultimately push this upstream into rEFInd.
If you want an exact match in rEFInd as things currently stand, you need to use a number for default_selection that corresponds to the position of the volume when displayed by rEFInd. Count from the left with the first being 1.
Alternatively, you could rename your volumes such that the search string is unique to a single volume. So maybe rename foo to foo-main and use this for default_selection.
Last edit: dakanji 2022-06-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have two partitions
I want to set the default boot partition to
foo
but refind keeps bootingfoo-backup
is is possible to make refind do an exact match? What is the syntax?
default_selection "foo"
rEFInd does not do an exact string match but will match the first volume it finds that contains the sub-string defined under default_selection.
The current unreleased RefindPlus code base first loops through all volumes looking for an exact string match and only does the substring match if this fails. It would be in the next release and the aim is to ultimately push this upstream into rEFInd.
If you want an exact match in rEFInd as things currently stand, you need to use a number for default_selection that corresponds to the position of the volume when displayed by rEFInd. Count from the left with the first being
1
.Alternatively, you could rename your volumes such that the search string is unique to a single volume. So maybe rename
foo
tofoo-main
and use this for default_selection.Last edit: dakanji 2022-06-02