DISTRO_PORTING revision eb10a76494542fb560efd09c16b40826fc37bc5f
eb10a76494542fb560efd09c16b40826fc37bc5fLennart PoetteringPorting systemd To New Distributions
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering You need to make the follow changes to adapt systemd to your
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering 0) Make your distribution recognized via the autoconf checks
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering in configure.ac. Grep for the word "fedora" (case
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering insensitively) and you should be able to find the places where
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering you need to add/change things.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering 1) Patch src/hostname-setup.c so that systemd knows where to
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering read your host name from.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering 2) Check the unit files in units/ if they match your
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering distribution. Most likely you will have to make additions to
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering units/*.m4 and create a copy of units/fedora/ with changes for
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering your distribution.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering 3) Adjust Makefile.am to register the unit files you added in
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering step 2. Also you might need to update the m4 invocation in
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering Makefile.am. Grep for the word "fedora" (case insensitively)
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering and you should be able to find the places where you need to
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering 4) Try it out.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart PoetteringCONTRIBUTING UPSTREAM:
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering We are interested in merging your changes upstream, if they
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering are for a big, and well-known distribution. Unfortunately we
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering don't have the time and resources to maintain
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering distribution-specific patches for all distributions on the
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering planet, hence please do not send us patches that adds systemd
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering support to non-mainstream or niche distributions.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering Thank you for understanding.