]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix broken autostart symlink after renaming domain
authorJulio Faracco <jcfaracco@gmail.com>
Thu, 19 Jul 2018 04:21:48 +0000 (01:21 -0300)
committerErik Skultety <eskultet@redhat.com>
Thu, 19 Jul 2018 09:22:28 +0000 (11:22 +0200)
commit359b938b8b37254e3e714a2a50e4b9a444516133
tree640ebb8f377904ae66551d58ff8a591b800ab02d
parent1bff5bbe25eb7a7e7a4e0067c4ca7cbc1cb34999
qemu: Fix broken autostart symlink after renaming domain

If a domain is configured to start on boot, it has a symlink to the
domain definition inside the autostart directory. If you rename this
domain, the definition is renamed too. The symlink need to be pointed to
this renamed file. This commit recreates the symlink after renaming the
XML file.

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

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_driver.c