Project developers postmarketOSdeveloping a Linux distribution for smartphones based on the Alpine Linux package base, the standard Musl C library and the BusyBox set of utilities, announced about providing the ability to use the systemd system manager. As a result of work on implementing systemd support, which took about a year, prepared and a prototype assembly is available for testing, in which systemd is used instead of the OpenRC initialization system.
Support for creating builds based on OpenRC will be retained, at least as long as this system is used in Alpine Linux – when building postmarketOS images, the option to select OpenRC in pmbootstrap is left. Among other things, developers of assemblies with a graphical shell plan to continue using OpenRC Sxmo (Simple X Mobile), based on the Sway composite manager.
Builds with systemd will continue to be built on the Alpine Linux package base, despite the fact that this distribution does not support systemd and uses the Musl C library. Systemd officially supports only the Glibc C library and the postmarketOS developers have to use additional patches, which they plan to integrate into the main systemd over time (work is underway together with the systemd developers to simplify the integration).
The reason for implementing systemd support is the difficulty of maintaining an OpenRC-based initialization stack in the face of the ever-increasing dependence of GNOME and KDE on systemd components. To ensure the functionality of GNOME and KDE based on systemd, it was necessary to use various layers, and the cost of working without systemd was the need to maintain these layers in proper form and synchronize with the development of GNOME and KDE, in the absence of some necessary functions in the layers and the unpredictability of continued maintenance developers.
For example, for compatibility with hostnamed, localed and timedated services, a layer was used openrc-settingsdinstead of udev the eudev package was used instead of logind – elogindinstead of journald – logbookd, the package “systemd –user” was used to provide functionality superdand systemd.timer was used as a replacement awakened.
Of the layers used, proper maintenance and level of support for the required functionality is provided only in openrc-settingsd and eudev. The elogind, logbookd and superd projects continue to be maintained, but require further development, since they lack some necessary features, and have been awake for about a year remains Unaccompanied. In addition, the KDE Plasma Mobile developers would like to use the systemd-coredumpd service to simplify debugging, but its replacement corecollector remains unaccompanied since 2020.
As for the need to use these services, the D-Bus API provided by hostnamed, localed and timedated are used in GNOME to change locales, system settings and time zones; udev is required to manage connected devices; logind, “systemd –user” and journald are used when managing user sessions in gnome-session; systemd.timer is used by GNOME Clock.
Among the new features that can be implemented in systemd-based assemblies, there is granular privilege management, the use of advanced features for ensuring security and managing dependencies between services, full integration with cgroups, the use of socket activation (for example, CUPS can be launched only when accessing network port), the presence of built-in tools for analyzing the boot process.
Thanks for reading: