22.11.2015 14:52, Alexander 'Leo' Bergolth пишет:
Hi!

Is it possible to use the output of lsacpi or lspci or
in a conditional expression?

I am using a dual-boot environment where the same box may boot natively
or inside a VirtualBox VM. Thus I'd like to detect whether grub has been
started inside VirtualBox or not in order to be able to set different
defaults.


Do you mean you want to boot different menu entries? Why?

The output of lsacpi contains "OEM-ID: VBOX" if started inside
VirtualBox. Is it possible to use that info in the grub config?

I didn't find a way to redirect the lsacpi output to a variable or a
file to be able to use it with regex.

Do you have any hint?

Maybe inb/inl/inw could be used?

Thanks,
--leo


_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to