]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix updating device with boot order
authorJiri Denemark <jdenemar@redhat.com>
Thu, 22 Feb 2018 12:51:36 +0000 (13:51 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 23 Feb 2018 10:52:44 +0000 (11:52 +0100)
commitedae027cfe02be4863dcef1e7f0ea0564766e312
tree57ac24654d65075cf9a56c201c3182322f373f52
parentb6a264e8550d4add3946ec2fd9ae31a76fbf16fe
qemu: Fix updating device with boot order

Commit v3.7.0-14-gc57f3fd2f8 prevented adding a <boot order='x'/>
element to an inactive domain with global <boot dev='...'/> element.
However, as a result of that change updating any device with boot order
would fail with 'boot order X is already used by another device', where
"another device" is in fact the device which is being updated.

To fix this we have to ignore the device which we're about to update
when checking for boot order conflicts.

https://bugzilla.redhat.com/show_bug.cgi?id=1546971

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/domain_conf.c