It's OK to specify the root dir as target directory when copying directories. However, in that case path_extract_filename() is going to fail, because the root dir simply has not filename. Let's address that by moving the call further down into the loop, when we made sure that the target dir doesn't exist yet (the root dir always exists, hence this check is sufficient). Moreover, in the branch for copying regular files, also move the calls down, and generate friendly error messages in case people try to overwrite dirs with regular files (and the root dir is just a special case of a dir). Altogether this makes CopyFiles=/some/place:/ work, i.e. copying some dir on the host into the root dir of the newly created fs. Previously this would fail with an error about the inability to extract a filename from "/", needlessly.
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 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.
