mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
hack: explicitly control enabling the journald logging driver
Without this, the dependency on systemd is said to be "automagic", which can lead to breakage, for example, if a binary package of docker is built on a system that has systemd installed then installed on a system that does not have systemd installed. for example: https://bugs.gentoo.org/914076 Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
This commit is contained in:
@@ -83,7 +83,7 @@ if [ ! "$GOPATH" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
|
||||
if [ -z "${EXCLUDE_AUTO_BUILDTAG_JOURNALD:-}" ] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
|
||||
DOCKER_BUILDTAGS+=" journald"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user