On Tue, 2013-01-22 at 17:18 +0100, Laszlo Ersek wrote: > On 01/22/13 03:59, Andrew Fish wrote: > > > > On Jan 21, 2013, at 5:40 PM, David Woodhouse <dw...@infradead.org> wrote: > > > >> On Mon, 2013-01-21 at 16:59 -0800, Andrew Fish wrote: > >>> Not sure if BdsGetBootTypeFromDevicePath() is broken, or functioning > >>> as intended. Remember in EFI there is not a concept of a bootable > >>> non-removable block IO device. > > Ah, that explains the intent.
Yes, but AFAICT it's irrelevant. In OVMF the presence of the Removable flag is not at all relevant to whether the device appears in the default boot menu or not (ignoring NVRAM configuration, qv.). It affects the *sorting*, with removable devices appearing before non-removable ones. But that's it. The question "why does a virtio disk not appear as a bootable device in the list in OVMF" has *nothing* to do with whether it's removable or not. Unless I'm very much mistaken. > >>> The OS installs the OS loader as a > >>> file and updates a variable to contain the path to the OS loader. This > >>> allows an arbitrary number of operating systems to boot from a single > >>> disk. > > OK, this is where the problem is introduced. No, I was avoiding the nvram variables altogether. This is an "appliance" disk, with Grub installed at /efi/boot/bootx64.efi, with no NvVars file on its EFI partition, which works fine when I just run 'qemu -hda efidisk.img'. I go into the boot menu, elect to boot from the 'EFI Hard Drive' option that appears there, and it works. It does not appear in the menu when it's attached as virtio, and that is based *purely* on the device path of the block device. Nothing else. But since we're speaking of nvram, my plan for fixing that is probably to use qemu's fw_cfg. I believe that fw_cfg "files" are actually writeable from the guest, so we could use *that* for storing nvram variables instead of the NvVars file on the EFI partition which, as discussed, only works before the OS might have it mounted. -- dwmw2
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel