Files
pmaports-rtwo/extra-repos/systemd
Clayton Craft 1b20c249cf systemd/postmarketos-base-systemd: fix preset template instance handling
This fixes a bug where template presets with a specified instance were
not being handled. The install script previously parsed the entire line,
including the instance(s) and ran 'systemctl preset' on it all, e.g.
'systemctl preset unudhcpd@.service usb0'.

The script will now:

- detect lines that contain a template + instance(s)
- diff the instances
- run preset on template@instance for all added or removed instances

Template presets that don't have any instances specified in the preset
file (because they have a DefaultInstance= set) are treated just like
any other unit since we can run preset on those and it enables the
template with the default instance.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9026>
2026-07-28 22:57:00 +00:00
..
2026-07-15 08:11:00 +02:00
2026-06-06 21:14:12 +02:00
2026-07-15 08:11:00 +02:00
2026-06-06 21:14:12 +02:00
2026-07-05 10:56:56 +02:00
2026-05-03 13:15:49 +00:00
2026-07-24 07:40:53 -07:00