21.05.2017 23:02, Tom Yan пишет: > It seems like the "disappearance" of storage drives after `insmod ehci` is > not relevant to whether the drives are USB ones. > > For example, if I start a virtual machine with this: > qemu-system-x86_64 -enable-kvm -drive file=grub.img -drive > if=pflash,readonly,file=ovmf_x64.bin > > And do this after grub started: > `ls; insmod ehci; ls` > > It will print only _one_ line with multiple storage drives: > (hd0), (hd0, gpt1), (fd0), (fd1), (cd0) > which indicates that _everything_ is gone after the insmod command. Same case > with ohci/uhci. > > This seems like a bug to me. >
it works as designed. USB driver change hardware state, so we cannot give control back to firmware. You need to use direct hardware access drivers from this point on. "nativedisk" command handles disk access for you. This is still best effort. We hope that firmware won't try to access hardware on its own, but we do not really know it nor control it. _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
