By forking off a user namespace before running mkfs and ID mapping the user running repart to root in the user namespace, we can make sure that files in the generated filesystems are all owned by root instead of the user running repart. To make this work we have to make sure that all the files in the root directory that's passed to the mkfs binary are owned by the user running repart, so we have to drop the shortcut for only a single root directory in partition_populate_directory().
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
