Skip to main content

systemd_version

Function systemd_version 

Source
pub(crate) fn systemd_version() -> Result<u32>
Expand description

Query the major version of systemd via systemctl --version, caching the result so it can be shared across callers (bootctl, systemd-repart, etc.).