Add fwconfig command

Add a command to read values from the qemu fwcfg store. This allows data
to be passed from the qemu command line to grub.

Example use:

echo '(hd0,1)' >rootdev
qemu -fw_cfg opt/rootdev,file=rootdev

fwconfig opt/rootdev root
This commit is contained in:
Matthew Garrett 2015-10-14 08:24:00 -07:00
parent 9a794d4652
commit 4042e13fec
2 changed files with 127 additions and 0 deletions

View file

@ -2358,3 +2358,9 @@ module = {
common = loader/i386/xen_file64.c;
extra_dist = loader/i386/xen_fileXX.c;
};
module = {
name = fwconfig;
common = commands/fwconfig.c;
enable = x86;
};