The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "FLOP:No-systemd system"
(some initial info) |
(list files installed by ebuilds) |
||
Line 31: | Line 31: | ||
=== Common changes === | === Common changes === | ||
Funtoo overrides all udev virtuals to support only eudev as udev provider. This also implicitly blocks installing systemd or udev. | Funtoo overrides all udev virtuals to support only eudev as udev provider. This also implicitly blocks installing systemd or udev. | ||
However, sys-apps/systemd and sys-fs/udev are not masked, so attempt at installing either of them will result in hard-to-understand blockers. Furthermore, USE=systemd is not masked, so users can enable it and be confused by the resulting blockers. | |||
A number of packages install systemd-related files (the ''unobtrusive support'' from Gentoo). This includes: | |||
* systemd units (services) in ''/usr/lib/systemd/system'' installed by multiple packages, | |||
* binfmt descriptions in ''/usr/lib/binfmt.d'' (''dev-dotnet/pe-format'', used by OpenRC as well), | |||
* modules loaded at boot in ''/usr/lib/modules-load.d'' (not yet observed, TODO: check if OpenRC uses it), | |||
* sysctl settings in ''/usr/lib/sysctl.d'' (not yet observed), | |||
* declarations of system users & groups in ''/usr/lib/sysusers.d'' (not yet observed outside systemd), | |||
* tmpfiles.d in ''/usr/lib/tmpfiles.d'' installed by multiple packages (used by OpenRC as well), | |||
* potentially other configuration files in ''/usr/lib/systemd'' (''sys-power/upower''). | |||
=== no-systemd mix-in === | === no-systemd mix-in === |
Revision as of 09:59, February 9, 2015
Funtoo Linux Optimization Proposal: No-systemd system
State inherited from Gentoo
udev implementations
Gentoo has three udev providers:
- sys-apps/systemd provides udev as a part of standard systemd installation,
- sys-fs/udev provides the systemd variant of udev decoupled from systemd, with some Gentoo patches,
- sys-fs/eudev provides the Gentoo fork of udev from before it was coupled into systemd.
The existence of those providers is acknowledged by the following virtuals:
- virtual/udev,
- virtual/libudev,
- virtual/libgudev.
systemd support in packages
Gentoo has separate methods of handling obtrusive and unobtrusive systemd support in packages.
Obtrusive support is when systemd support:
- collides with OpenRC support,
- requires systemd being installed (e.g. linking to systemd libraries).
Unobtrusive support is when the package can support both OpenRC and systemd simultaneously without issues. Examples of unobtrusive support is portable, conditional code (i.e. runtime detection of init) and installation of unit files that are not used when systemd is not used.
For obtrusive conditional support Gentoo uses USE=systemd flag. For unobtrusive support, Gentoo enables relevant features or installs relevant files unconditionally. This aimed to ease switching to systemd and back by reducing the number of rebuilds.
Current state in Funtoo
Common changes
Funtoo overrides all udev virtuals to support only eudev as udev provider. This also implicitly blocks installing systemd or udev.
However, sys-apps/systemd and sys-fs/udev are not masked, so attempt at installing either of them will result in hard-to-understand blockers. Furthermore, USE=systemd is not masked, so users can enable it and be confused by the resulting blockers.
A number of packages install systemd-related files (the unobtrusive support from Gentoo). This includes:
- systemd units (services) in /usr/lib/systemd/system installed by multiple packages,
- binfmt descriptions in /usr/lib/binfmt.d (dev-dotnet/pe-format, used by OpenRC as well),
- modules loaded at boot in /usr/lib/modules-load.d (not yet observed, TODO: check if OpenRC uses it),
- sysctl settings in /usr/lib/sysctl.d (not yet observed),
- declarations of system users & groups in /usr/lib/sysusers.d (not yet observed outside systemd),
- tmpfiles.d in /usr/lib/tmpfiles.d installed by multiple packages (used by OpenRC as well),
- potentially other configuration files in /usr/lib/systemd (sys-power/upower).
no-systemd mix-in
The no-systemd mix-in additionally:
- masks sys-fs/udev and sys-apps/systemd,
- adds INSTALL_MASK to remove systemd unit files.
Proposed future state in Funtoo
TODO