mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
Wed Jul 5 16:51:45 IST 2006 Mark McLoughlin <markmc@redhat.com>
* xml.c: only set bootloader flag when we actually get a bootloader
This commit is contained in:
parent
4fcc208fa4
commit
48030121a1
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jul 5 16:51:45 IST 2006 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
|
* xml.c: only set bootloader flag when we actually get
|
||||||
|
a bootloader
|
||||||
|
|
||||||
Tue Jul 4 13:50:55 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
Tue Jul 4 13:50:55 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* libvirt.spec.in proxy/Makefile.am: do the chown at the rpm packaging
|
* libvirt.spec.in proxy/Makefile.am: do the chown at the rpm packaging
|
||||||
|
@ -566,7 +566,7 @@ virDomainGetXMLDesc(virDomainPtr domain, int flags)
|
|||||||
* virDomainParseXMLOSDesc:
|
* virDomainParseXMLOSDesc:
|
||||||
* @xmldesc: string with the XML description
|
* @xmldesc: string with the XML description
|
||||||
* @buf: a buffer for the result S-Expr
|
* @buf: a buffer for the result S-Expr
|
||||||
* @bootloader: indocate if a bootloader script was provided
|
* @bootloader: indicate if a bootloader script was provided
|
||||||
*
|
*
|
||||||
* Parse the OS part of the XML description and add it to the S-Expr in buf
|
* Parse the OS part of the XML description and add it to the S-Expr in buf
|
||||||
* This is a temporary interface as the S-Expr interface
|
* This is a temporary interface as the S-Expr interface
|
||||||
@ -914,7 +914,6 @@ virDomainParseXMLDesc(const char *xmldesc, char **name)
|
|||||||
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
||||||
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
||||||
virBufferVSprintf(&buf, "(on_poweroff '%s')", obj->stringval);
|
virBufferVSprintf(&buf, "(on_poweroff '%s')", obj->stringval);
|
||||||
bootloader = 1;
|
|
||||||
}
|
}
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
|
|
||||||
@ -922,7 +921,6 @@ virDomainParseXMLDesc(const char *xmldesc, char **name)
|
|||||||
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
||||||
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
||||||
virBufferVSprintf(&buf, "(on_reboot '%s')", obj->stringval);
|
virBufferVSprintf(&buf, "(on_reboot '%s')", obj->stringval);
|
||||||
bootloader = 1;
|
|
||||||
}
|
}
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
|
|
||||||
@ -930,7 +928,6 @@ virDomainParseXMLDesc(const char *xmldesc, char **name)
|
|||||||
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
||||||
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
||||||
virBufferVSprintf(&buf, "(on_crash '%s')", obj->stringval);
|
virBufferVSprintf(&buf, "(on_crash '%s')", obj->stringval);
|
||||||
bootloader = 1;
|
|
||||||
}
|
}
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user