d/rules: Restart qemu-guest-agent.service after upgrade
Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2028124
I think qemu-guest-agent.service
should be automatically started
after installation. I tried doing some archaeology and finding the
reason why we're passing --no-start
to dh_installsystemd
, but
couldn't really find the reasoning.
As can be seen in the bug linked above, there seems to be a change of behaviour that was (mistakenly?) introduced in debhelper 12 and that led to the following scenario:
On Focal
- Install
qemu-guest-agent
, start the service. - Reinstall the package. You will notice that the service is brought back after the installation.
On Jammy
- Install
qemu-guest-agent
, start the service. - Reinstall the package. You will notice that the service is NOT brought back after the installation.
I tested this proposed change and verified that it works fine in a Debian VM.