https://bugs.gentoo.org/914076 https://github.com/moby/moby/issues/47770 --- a/hack/make.sh +++ b/hack/make.sh @@ -90,7 +90,7 @@ add_buildtag() { [[ " $DOCKER_BUILDTAGS" == *" $1_"* ]] || DOCKER_BUILDTAGS+=" $1_$2" } -if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then +if [[ -n "$SYSTEMD" ]] && [[ "$SYSTEMD" == 1 ]] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then DOCKER_BUILDTAGS+=" journald" fi