<kernel>/root/f8-i386-vmlinuz</kernel>
<initrd>/root/f8-i386-initrd</initrd>
<cmdline>console=ttyS0 ks=http://example.com/f8-i386/os/</cmdline>
+ <shim>/path/to/shim.efi</shim>
<dtb>/root/ppc.dtb</dtb>
</os>
...
The contents of this element specify arguments to be passed to the kernel (or
installer) at boot time. This is often used to specify an alternate primary
console (eg serial port), or the installation media source / kickstart file
+``shim``
+ Use specified fully-qualified path to load an initial UEFI bootloader that
+ handles chaining to a trusted full bootloader under secure boot
+ environments.
``dtb``
The contents of this element specify the fully-qualified path to the
(optional) device tree binary (dtb) image in the host OS.
g_free(os->kernel);
g_free(os->initrd);
g_free(os->cmdline);
+ g_free(os->shim);
g_free(os->dtb);
g_free(os->root);
for (i = 0; i < os->nacpiTables; i++)
def->os.kernel = virXPathString("string(./os/kernel[1])", ctxt);
def->os.initrd = virXPathString("string(./os/initrd[1])", ctxt);
def->os.cmdline = virXPathString("string(./os/cmdline[1])", ctxt);
+ def->os.shim = virXPathString("string(./os/shim[1])", ctxt);
def->os.dtb = virXPathString("string(./os/dtb[1])", ctxt);
def->os.root = virXPathString("string(./os/root[1])", ctxt);
}
/*
* Booting options for different OS types....
*
- * - A bootloader (and optional kernel+initrd) (xen)
- * - A kernel + initrd (xen)
- * - A boot device (and optional kernel+initrd) (hvm)
- * - An init script (exe)
+ * - A bootloader (and optional kernel+initrd) (xen)
+ * - A kernel + initrd (xen)
+ * - A boot device (and optional kernel+initrd(+shim)) (hvm)
+ * - An init script (exe)
*/
switch ((virDomainOSType) def->os.type) {
def->os.initrd);
virBufferEscapeString(buf, "<cmdline>%s</cmdline>\n",
def->os.cmdline);
+ virBufferEscapeString(buf, "<shim>%s</shim>\n",
+ def->os.shim);
virBufferEscapeString(buf, "<dtb>%s</dtb>\n",
def->os.dtb);
virBufferEscapeString(buf, "<root>%s</root>\n",