[Focal] migrate the boot-hook system to systemd
lxc-android-config has a job called boot-hooks-emit
, whose job is to emit boot-hooks
upstart event, either every time, or once it detects that the system image's version is changed.
We probably want to duplicate this functionality to Focal. What I envisioned is that the event probably has to be replaced with systemd .target
unit(s). The user units can then WantedBy=
and After=
these units as needed.
At the moment, I don't see any usage of this system outside lxc-android-config itself.