[Bug 229770] loader.efi: 'rootdev' environment variable ignored
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:42:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229770 Torfinn Ingolfsen <tingox+freebsd@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tingox+freebsd@gmail.com --- Comment #8 from Torfinn Ingolfsen <tingox+freebsd@gmail.com> --- Doesn't work in FreeBSD 13.0-release-p11 either. Tested with entries like these menuentry "FreeBSD 12" { icon /EFI/refind/icons/os_freebsd.png loader /EFI/freebsd/loader.efi options "rootdev=disk0p7" } in /boot/efi/EFI/refind/refind.conf. The entries show up in rEFInd, and I have verified that rEFInd picks up the rootdev variable (it does). Also tried with "rootdev=disk0p7:" doesn't change anything. A cursory check seems to indicate that loader should have support for rootdev root@kg-quiet:~ # strings /boot/efi/EFI/freebsd/loader.efi | grep rootdev uefi_rootdev rootdev Setting currdev to configured rootdev %s root@kg-quiet:~ # strings /boot/loader.efi | grep rootdev uefi_rootdev rootdev Setting currdev to configured rootdev %s root@kg-quiet:~ # strings /boot/loader_lua.efi | grep rootdev uefi_rootdev rootdev Setting currdev to configured rootdev %s but it doesn't work. Setting currdev manually works of course. Details: root@kg-quiet:~ # freebsd-version -ku 13.0-RELEASE-p11 13.0-RELEASE-p11 root@kg-quiet:~ # uname -a FreeBSD kg-quiet.kg4.no 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr 5 18:54:35 UTC 2022 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 root@kg-quiet:~ # ll /boot/efi/EFI/freebsd/loader.efi /boot/*.efi -r-xr-xr-x 1 root wheel 114176 Apr 9 2021 /boot/boot1.efi* -rwxr-xr-x 1 root wheel 896000 May 8 11:24 /boot/efi/EFI/freebsd/loader.efi* -r-xr-xr-x 1 root wheel 109056 Apr 9 2021 /boot/gptboot.efi* -r-xr-xr-x 2 root wheel 896000 Apr 9 2021 /boot/loader.efi* -r-xr-xr-x 1 root wheel 809984 Apr 9 2021 /boot/loader_4th.efi* -r-xr-xr-x 2 root wheel 896000 Apr 9 2021 /boot/loader_lua.efi* -r-xr-xr-x 1 root wheel 750080 Apr 9 2021 /boot/loader_simp.efi* -- You are receiving this mail because: You are the assignee for the bug.