DISTRO_PORTING revision edb9aaa8b27adf89cc712000318b1e9cf40ea296
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
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering read your host name from. You might also want to update
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering status_welcome() in util.c.
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
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering 4) Try it out. Play around with 'systemd --test --system' for
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering a test run of systemd without booting. This will read the unit
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering files and print the initial transaction it would execute
edb9aaa8b27adf89cc712000318b1e9cf40ea296Lennart Poettering during boot-up. This will also inform you about ordering loops
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
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering planet, hence please do not send us patches that add systemd
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering support for non-mainstream or niche distributions.
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering Thank you for understanding.
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart PoetteringBE CONSIDERATE:
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering We'd like to keep differences between the distributions
18c78fb1af5415bb6f87d9c7cae1f9c60e14ae24Lennart Poettering minimal. This both simplifies our maintenance work, as well
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering as it helps administrators to move from one distribution to
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering Hence we'd like to ask you to keep your changes minimal, and
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering not rename any units without a very good reason (if you need a
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering particular name for compatibility reasons, consider using
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering alias names via symlinks). Before you make changes that change
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering semantics from upstream, please talk to us!
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering In SysV almost every distribution uses a different
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering nomenclature and different locations for the boot-up
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering scripts. We'd like to avoid chaos like that with systemd right
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering from the beginning. So please, be considerate!