I've attached a branch which uses a combination of Pre-Depends, a new -data-saver package and dpkg-divert to ensure that the waagent binary is not present when the prerm of the existing package tries to run; this avoid the waagent --uninstall stuff OK and generally seems to be the accepted way to deal with this situation.
I've attached a branch which uses a combination of Pre-Depends, a new -data-saver package and dpkg-divert to ensure that the waagent binary is not present when the prerm of the existing package tries to run; this avoid the waagent --uninstall stuff OK and generally seems to be the accepted way to deal with this situation.