We want to stop systemd from being added to docker images, because of rpm requiring systemctl.

Josh Boyer jwboyer at fedoraproject.org
Tue Apr 29 15:21:03 UTC 2014

On Tue, Apr 29, 2014 at 10:58 AM, Alexander Larsson <alexl at redhat.com> wrote:
> On tis, 2014-04-29 at 12:33 +0200, Lennart Poettering wrote:
>> On Mon, 28.04.14 17:01, Daniel J Walsh (dwalsh at redhat.com) wrote:
>> > The problem  is lots of services require systemd because they ship a
>> > unit file and want systemctl reload to happen.  Systemd then triggers a
>> > require for udev and kmod, which docker containers do not need.
>> If you discount the docs/man pages of the RPMs, how much does kmod,
>> udev, systemd actually contribtue in bytes to your docker images?
> Its around 15 megs or so, although on rhel7 its 20 megs larger because
> of a dependency that kmod has on /usr/bin/nm (binutils) that doesn't
> seem to be there on fedora kmod. This seems like a bug in fedora though,
> as kmod ships /usr/sbin/weak-modules which calls nm, so once fixed
> fedora would be at 35 meg too.

It's a bug one way or another.  Lacking the dep on nm would break
weak-modules as you suggest, but afaik Fedora doesn't ship anything
that actually uses or leverages weak-modules anyway.  So either the
dep could be added or the script could be dropped.


More information about the devel mailing list