mirror of https://gitee.com/openkylin/libvirt.git
Fix boot device tests
This commit is contained in:
parent
a80faa4bf0
commit
de288e8dbc
|
@ -1,3 +1,10 @@
|
|||
Thu Jun 7 15:48:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xm_internal.c: Fix boot device XML -> config conversion
|
||||
* test/xmconfigdata/test-fullvirt-new-cdrom.xml,
|
||||
test/xmconfigdata/test-fullvirt-old-cdrom.xml fix syntax for
|
||||
boot device
|
||||
|
||||
Thu Jun 7 15:48:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xend_internal.c src/xm_internal.c src/xml.c: add support
|
||||
|
|
|
@ -1800,7 +1800,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
|
|||
"cannot set the os loader parameter") < 0)
|
||||
goto error;
|
||||
|
||||
obj = xmlXPathEval(BAD_CAST "string(/domain/os/boot)", ctxt);
|
||||
obj = xmlXPathEval(BAD_CAST "string(/domain/os/boot/@dev)", ctxt);
|
||||
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
||||
(obj->stringval != NULL)) {
|
||||
if (!strcmp((const char*)obj->stringval, "fd"))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<os>
|
||||
<type>hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot>cdrom</boot>
|
||||
<boot dev='cdrom'/>
|
||||
</os>
|
||||
<currentMemory>403456</currentMemory>
|
||||
<memory>592896</memory>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<os>
|
||||
<type>hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot>cdrom</boot>
|
||||
<boot dev='cdrom'/>
|
||||
</os>
|
||||
<currentMemory>403456</currentMemory>
|
||||
<memory>592896</memory>
|
||||
|
|
Loading…
Reference in New Issue