Skip to content

Commit

Permalink
hack: explicitly control enabling the journald logging driver
Browse files Browse the repository at this point in the history
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

closes #47770
  • Loading branch information
williamh committed May 2, 2024
1 parent 5d03db2 commit 221133b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [ ! "$GOPATH" ]; then
exit 1
fi

if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
if [[ ${SYSTEMD:-1} == 1 ]] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
DOCKER_BUILDTAGS+=" journald"
fi

Expand Down

0 comments on commit 221133b

Please sign in to comment.