Commit Graph
64 Commits
Author SHA1 Message Date
Achill Gilgenast 9479a409e3 systemd/postmarketos-base-systemd: remove pd-mapper.service preset
Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/2936

[skip ci]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8772>
2026-09-06 22:16:51 +02:00
Clayton Craft 2b05e6da6b systemd/postmarketos-base-systemd: symlink resolv.conf to resolved stub
This logic is "borrowed" from Fedora, and replaces /etc/resolv.conf with
a symlink to the systemd-resolved stub. Fedora does this from an install
script, but that doesn't work for image-based installs since those never
run install scripts on the device, and /etc persists across updates.
I've also seen cases in testing where the symlink was removed by e.g.
accidentally running resolvconf or something similar. So
this runs from a oneshot unit at boot instead, which is ordered before
network-pre.target so NetworkManager doesn't get there first. The old
resolved.post-install script is dropped since the unit covers both cases.

There are some conditions where resolv.conf is **not** replaced:

- when resolv.conf is already a symlink
- when systemd-resolved isn't enabled
- when its stub listener is disabled (via DNSStubListener= in config)
- when systemd isn't running, since resolved isn't either and replacing
  resolv.conf would just break dns (e.g. when running the unit's script
  by hand)
- when resolv.conf is a bind mount (e.g. in a chroot or container)

This assumes that if a user/sys admin wants to hand-roll their own
resolv.conf, that they either disable the systemd-resolved unit or
disable the stub listener in config if they want to use foreign mode.

The resolved drop-ins are also renamed with a 10- prefix, to match the
numbering ranges UAPI.6 recommends for vendor config in /usr.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9109>
2026-08-08 20:02:10 +00:00
Aster Boese be99b6a5bf systemd/postmarketos-base-systemd: remove fbkeyboard preset
The UI package was deleted, so this preset is unneeded.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9176>
2026-08-06 00:39:15 +00:00
Clayton Craft bf92f55a5a systemd/postmarketos-base-systemd: add preset for routewrangler
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9005>
2026-08-05 11:02:07 -07:00
Ferass El Hafidi 5d7568dfcf systemd/postmarketos-base-systemd: preset buffyboard.service
Else the buffyboard UI does not work under systemd.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9236>
2026-08-04 16:25:54 +00:00
Clayton Craft 6d00e47c78 systemd/postmarketos-base-systemd: fix unudhcpd@ preset
According to systemd.preset, which I totally should have read before, we
were not specifying the instance correctly which resulted in this unit
not actually being enabled by default.

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
Clayton Craft 3903172aef systemd/postmarketos-base-systemd: drop usb-moded-developer-mode preset
This unit/script shouldn't be run on boot. Mode switching should be
managed by usb-signaller

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9026>
2026-07-28 22:56:57 +00:00
Clayton Craft e4a8fb375c systemd/postmarketos-base-systemd: remove sleep-inhibitor preset
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8672>
2026-07-19 19:51:56 +00:00
Clayton Craft 594e361a71 systemd/postmarketos-base-systemd: inhibit sleep when apk is running
This uses some lightweight tools with systemd-inhibit to block sleep and
shutdown when apk is running. This is being installed in a new subpkg
that is pulled in only when apk-tools is installed, so that this is not
installed on duranium.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8672>
2026-07-19 19:51:53 +00:00
Clayton Craft 37e1370ae9 systemd/postmarketos-base-systemd: don't enable time-wait-sync
This removes the other half of the workaround for #3816, that should have been in !8487.

Fixes #4687

This reverts commit 5e435f9669.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8993>
2026-07-10 21:44:39 +00:00
Aelin a2c53ce8f4 systemd/postmarketos-base-systemd: kill-pbsplash.service is no more
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8885>
2026-06-23 10:20:40 +00:00
Dylan Van Assche 9bccd6b5e9 systemd/postmarketos-base-systemd: enable unudhpcd service
Start unudhpcd on boot

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8553>
2026-06-18 06:27:13 +00:00
Dylan Van Assche 7a917eee3c main/postmarketos-usb-moded: handle initramfs situation
initramfs starts USB NCM gadget and unudhcpd for SSH login.
This requires special handling since unudhpcd is unmanaged by the
service manager until the userspace is started. Once entered in userspace,
the usb-moded-developer-mode needs to be activated which configures
NetworkManager and starts unudhcpd under the service manager.
This way, a full handover is possible and the gadgets can be properly
switched without any leftovers from the initramfs due to the unmanaged
situation.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8553>
2026-06-18 06:27:13 +00:00
Dylan Van Assche 9112523f0a systemd/postmarketos-base-systemd: swap usb-moded by usb-signaller
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8553>
2026-06-18 06:27:03 +00:00
Achill Gilgenast 51940cbddc systemd/postmarketos-base-systemd: enable avahi-daemon.service
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8102>
2026-04-16 16:16:43 +02:00
Aelin eef05be974 systemd/postmarketos-base-systemd: drop hexagonfs-firmware-loader from preset
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8163>
2026-03-30 22:04:04 +00:00
Clayton Craft 7143cf4f51 systemd/postmarketos-base-systemd: depend on dbus-broker
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8223>
2026-03-30 21:30:49 +00:00
Bart Ribbers 654c9c242a systemd/plasma-login-manager: new aport
We're using it as a SDDM replacement

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8079>
2026-03-02 14:31:13 +01:00
Achill Gilgenast c91a823f37 systemd/postmarketos-base-systemd: remove asteroid presets
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7972>
2026-02-09 16:14:15 +00:00
Clayton Craft 2b4650d9f3 systemd/postmarketos-base-systemd: add preset for zram-swap
And remove preset for zram-init's zram_swap

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7754>
2026-01-17 16:56:28 +00:00
Clayton Craft 5e435f9669 systemd/postmarketos-base-systemd: add systemd-time-wait-sync preset
This unit will activate `time-sync.target` after system time is synced,
e.g. by NTP. We can use this target to delay starting some units until
we know that system time is correct. IIUC this shouldn't have any impact
on system startup otherwise, including existing units we enable, so
nothing should be slowed down by adding this.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7711>
2026-01-12 19:41:19 +00:00
Achill Gilgenast d1284775df systemd/postmarketos-base-systemd: switch from wlgreet.service to greetd.service
We're switchitung to the upstream greetd service from wlgreet

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7557>
2025-12-16 21:54:18 +01:00
Antoine Martin d34a040357 systemd/postmarketos-base-systemd: add pinenote systemd units to base preset
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7515>
2025-12-15 15:56:11 +00:00
Jan Jasper de Kroon 305cddc07f systemd/postmarketos-base-systemd: enable irqbalance.service
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7081>
2025-11-09 18:07:12 +01:00
Jane Rachinger b43fe351da systemd/postmarketos-base-systemd: add shutdown-splash preset
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6926>
2025-10-06 20:30:56 -07:00
Clayton Craft 4f29f7a07e systemd/postmarketos-base-systemd: add missing preset config
The trigger runs `systemctl preset cups.service`, but then if it runs
preset on the other two *afterwards* it will disable them (because no
explicit preset and we default to disable). This helps ensure they're
kept enabled.

The same seems to also happen for NetworkManager-wait-online and the
other things here, leading to them being accidentally disabled.

This also removes cups.service, it should be socket-activatable now that
cups.socket is enabled.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7029>
2025-09-16 13:37:11 -07:00
Devin Lin 9f2902ed95 postmarketos-base-systemd: Enable drkonqi
Enable necessary services for drkonqi on Plasma, see: https://invent.kde.org/plasma/drkonqi/-/blob/master/README.md?ref_type=heads

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7039>
2025-09-14 00:00:15 +00:00
Markus Göllnitz 5c01db2b90 systemd/systemd-services: add vnstat service
Monitoring the network usage due to mobile connections
being metred is probably interesting to more users.

vnstat is also the basis for Usage's optional network
view.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7001>
2025-09-09 18:29:17 +02:00
Sicelo A. Mhlongo add7b4b13d systemd/postmarketos-base-systemd: enable N900's wl1251-cal service
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6932
2025-08-16 14:22:12 -04:00
Alistair Francis 1a139f85fb systemd/postmarketos-base-systemd: enable Pixel 3a modem-gnss.service
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6588

[ci:skip-build]: already built successfully in CI
2025-07-28 10:39:12 +02:00
Robert Eckelmann a83b92dc72 systemd/postmarketos-base-systemd: add defaults for lightdm and xfce4
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6668
2025-07-13 12:21:05 +02:00
George Brooke 2bb9bea1a6 systemd/postmarketos-base-systemd: enable tuned and tuned-ppd by default
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6585

[ci:skip-build]: already built successfully in CI
2025-06-17 19:21:52 +02:00
Alistair Francis 070f069ebb postmarketos-systemd-base: add preset for Librem5
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6563

[ci:skip-build]: already built successfully in CI
2025-05-30 14:43:25 -07:00
George Brooke 31014f740c systemd/postmarketos-base-systemd: enable cros-keyboard-systemd.service in base preset
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6529

[ci:skip-build]: already built successfully in CI
2025-05-25 11:14:57 +02:00
Alistair FrancisandClayton Craft 3bf8208abe postmarketos-systemd-base: add preset for 81voltd
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Co-authored-by: Clayton Craft <clayton@craftyguy.net>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6494

[ci:skip-build]: already built successfully in CI
2025-05-23 16:07:09 -07:00
George Brooke a467bfd1b1 systemd/postmarketos-base-systemd: enable keyd.service in base preset
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6499

[ci:skip-build]: already built successfully in CI, except unrelated qemu
runner failures
2025-05-14 14:15:01 -07:00
Clayton Craft 7a9acf86ec systemd/postmarketos-base-systemd: add configuration for systemd-resolved
Installing systemd-resolved by default is still probably not a good
idea (e.g. until #1430 is fixed, at least?), but this adds config for
NM and sd-resolved to get the stub resolver set up automatically when
systemd-resolved is installed manually by a user.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6250
[ci:skip-build]: already built successfully in CI
2025-05-06 10:19:38 -07:00
Aster Boese 020ffd888d systemd/postmarketos-base-systemd: add niri presets
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6449
2025-04-30 17:12:10 +02:00
Clayton Craft f0a72fc9e1 systemd/postmarketos-base-systemd: add presets for alsa-utils
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6287
2025-03-17 08:46:48 +01:00
Clayton Craft 71df49fd16 systemd/postmarketos-base-systemd: add preset for COSMIC greeter (MR 6274) 2025-03-13 10:57:35 -07:00
fossdd 85e415e5e7 systemd/postmarketos-base-systemd: add system preset for kodi (MR 6273)
[ci:skip-build]: already built successfully in CI
2025-03-12 21:11:48 +01:00
Jens Reidel d8f88307b8 systemd/postmarketos-base-systemd: add hexagonfs-firmware-loader to system preset
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6286
2025-03-10 15:09:22 +01:00
Clayton Craft fcf2b87a26 systemd/postmarketos-base-systemd: enable systemd-oomd by default (MR 6246)
This enables systemd-oomd by default and provides some default
configuration for system.slice and for all slices that run under user.

This default slice config is inspired by what Fedora ships,
which seems like a sensible default for us to start with. Units/slices
within these two top-ish level slices can set their own limits and
actions if they want.
2025-03-09 00:14:20 -08:00
Bart Ribbers 986b312ab9 systemd/postmarketos-base-systemd: enable AsteroidUI-related services (MR 6160) 2025-03-03 18:20:08 +01:00
Clayton Craft 0860262282 systemd/postmarketos-base-systemd: add zram-init/zram_swap preset (MR 6208)
I evaluated using systemd/zram-generator but decided against it for the following reasons:

1) it was more difficult to configure using the existing deviceinfo var
we have for zram_pct, this meant that we would ultimately couldn't have
a consistent way to configure zram stuff for all supported init systems

2) it's a Rust app, and was failing to build in CI for armv7, riscv64,
and armhf with some weird qemu crashes, failed tests, etc

3) zram-init Just Works, upstream ships a unit file for it so they
support running under systemd already
[ci:skip-build]: already built successfully in CI
2025-02-21 10:28:22 -08:00
Clayton Craft f3fb6c17a9 systemd/postmarketos-base-systemd: add system preset for cups (MR 6196)
[ci:skip-build]: already built successfully in CI
2025-02-12 15:41:14 -08:00
Clayton Craft b23fff2aa5 systemd/postmarketos-base-systemd: add msm-modem-uim-selection to system preset (MR 6173)
Also sorted the list of qcom-related units
2025-02-12 14:56:35 -08:00
Devin Lin 5afe39283c systemd/systemd-services: add hfd-service (MR 6191)
Unit file is from https://gitlab.com/ubports/development/core/hfd-service/-/blob/main/init/hfd-service.service.in?ref_type=heads

This fixes system vibrations not working in Plasma.
[ci:skip-build]: already built successfully in CI
2025-02-10 17:44:11 -08:00
fossdd e8d9a0273e systemd/postmarketos-base-systemd: remove phosh preset (MR 6150)
phosh.service was removed, because phosh uses tinydm to start for the
moment
2025-02-09 13:55:50 +01:00
Robert MaderandClayton Craft 17d52ba258 systemd/postmarketos-base-systemd: add hexagonrpcd-adsp services to system preset (MR 6147)
Co-authored-by: Clayton Craft <clayton@craftyguy.net>
2025-02-07 10:09:39 -08:00