Sync pre* and post* scripts to be run at same step
Updater is now running first
postinst script and later
postrm scripts. This causes problems because
prerm script expect to be run before
postinst scripts. The original idea was not to break stuff with
prerm which can stop services and more. Problem si that in reality it breaks stuff because services are stopped and disabled and that is done after
postinst were run so there is no
postinst to fix that.
The solution is simple. Throw away this stupid logic and just run
prerm scripts together with
preinst script in correct order. This also allow us to move and run
postrm scripts together with
postinst scripts. This makes much more sense and is consistent.
Only problem is that it is going to break journal for sure because we have to move operations between steps. Well that is a pity.