mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix corrupt XML when boot device is a cdrom
This commit is contained in:
@@ -1406,7 +1406,7 @@ xend_parse_sexp_desc_os(struct sexpr *node, virBufferPtr buf, int hvm)
|
||||
*/
|
||||
virBufferAdd(buf, " <boot dev='hda'/>\n", 22 );
|
||||
else if (strcmp(tmp, "d") == 0)
|
||||
virBufferAdd(buf, " <boot dev='/dev/cdrom'/>\n", 24 );
|
||||
virBufferAdd(buf, " <boot dev='/dev/cdrom'/>\n", 29 );
|
||||
}
|
||||
} else {
|
||||
virBufferVSprintf(buf, " <type>linux</type>\n");
|
||||
|
||||
Reference in New Issue
Block a user