Skip to content

Commit

Permalink
pkg/config: fix systemd compile errors
Browse files Browse the repository at this point in the history
The errors sneaked through CI as we didn't use the systemd build tag for
testing.

Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed May 27, 2021
1 parent 27444b6 commit a1b80b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GO_BUILD=$(GO) build
ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
GO_BUILD=GO111MODULE=on $(GO) build -mod=vendor
endif
BUILDTAGS := containers_image_openpgp
BUILDTAGS := containers_image_openpgp,systemd
DESTDIR ?=
PREFIX := /usr/local
CONFIGDIR := ${PREFIX}/share/containers
Expand Down
3 changes: 3 additions & 0 deletions pkg/config/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
package config

import (
"io/ioutil"
"strings"
"sync"

"github.com/containers/common/pkg/cgroupv2"
Expand All @@ -25,6 +27,7 @@ func defaultCgroupManager() string {

return SystemdCgroupsManager
}

func defaultEventsLogger() string {
if useSystemd() {
return "journald"
Expand Down

0 comments on commit a1b80b5

Please sign in to comment.