new systemd presets not applied on upgrade
It's possible that new presets from postmarketos-base-systemd aren't applied when the system is upgraded.
For example consider the following:
-
A service's -systemd subpkg has install scripts for calling 'systemctl preset', either in pmaports or aports (later when abuild can split -systemd)
-
pmos-base-sd doesn't have any preset specified for the service, e.g. because we don't know we want it yet
-
the service is installed, probably because it was pulled in by
install_if="foo systemd"
in the -systemd subpkg, preset install script runs, but no presets are around so it's a no-op -
we add the preset to pmos-base-sd later, but nothing happens on upgrade because the service -systemd install scripts for applying presets only run on post-install
A form of this happened recently in !6050 (merged), where a branch had both service preset install scripts and pmos-base-sd preset config, but apk installed them in the wrong order: first bootmac-systemd, with its .post-install
script that ran systemctl preset bootmac-bluetooth
, and then it installed the pmos-sd-base update w/ the preset for the bootmac-bluetooth
service that was added
We need to figure out a way to apply presets when new ones are added in pmos-sd-base on upgrade.