[Bug 229770] loader.efi: 'rootdev' environment variable ignored

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Sep 2022 16:42:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229770

Michael Gmelin <grembo@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grembo@FreeBSD.org

--- Comment #9 from Michael Gmelin <grembo@FreeBSD.org> ---
(In reply to Torfinn Ingolfsen from comment #8)

Please see https://reviews.freebsd.org/D36457

1. In order for loader.env to work, it seems like the partition needs
   to be created using `newfs_msdos` and NOT `newfs_msdos -F32 -c 1`
   like https://wiki.freebsd.org/UEFI recommends.
2. loader.efi skips the first argument passed into it, so simply specifying
   the option a second time should make it catch on (and still work once the
   bug is fixed):

    menuentry "FreeBSD 13" {
        icon /EFI/refind/icons/os_freebsd.png
        loader /EFI/freebsd/loader.efi
        options "rootdev=disk0p7: rootdev=disk0p7:"
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.