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.

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
--
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria


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

Reply via email to