Menu

exact partition label match

2022-06-01
2022-06-01
  • David Kebler

    David Kebler - 2022-06-01

    I have two partitions

    foo
    foo-backup
    

    I want to set the default boot partition to foo but refind keeps booting foo-backup

    is is possible to make refind do an exact match? What is the syntax?

    default_selection "foo"

     
  • dakanji

    dakanji - 2022-06-01

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.