Skip to content

Commit

Permalink
Merge pull request #53 from drachenfels-de/config
Browse files Browse the repository at this point in the history
Add support for structured config file and `lxcri config` command.
  • Loading branch information
r10r authored May 6, 2021
2 parents 3db7b68 + 5e47e19 commit a2aae0c
Show file tree
Hide file tree
Showing 9 changed files with 286 additions and 199 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PKG_CONFIG_PATH ?= $(PREFIX)/lib/pkgconfig
# Note: The default pkg-config directory is search after PKG_CONFIG_PATH
# Note: (Exported) environment variables are NOT visible in the environment of the $(shell ...) function.
export PKG_CONFIG_PATH
LDFLAGS=-X main.version=$(COMMIT) -X main.libexecDir=$(LIBEXEC_DIR)
LDFLAGS=-X main.version=$(COMMIT) -X main.defaultLibexecDir=$(LIBEXEC_DIR)
CC ?= cc
SHELL_SCRIPTS = $(shell find . -name \*.sh)
GO_SRC = $(shell find . -name \*.go | grep -v _test.go)
Expand Down
2 changes: 1 addition & 1 deletion cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func configureCgroup(rt *Runtime, c *Container) error {
}

func configureCgroupPath(rt *Runtime, c *Container) error {
if rt.SystemdCgroup {
if c.SystemdCgroup {
c.CgroupDir = parseSystemdCgroupPath(c.Spec.Linux.CgroupsPath)
} else {
c.CgroupDir = c.Spec.Linux.CgroupsPath
Expand Down
Loading

0 comments on commit a2aae0c

Please sign in to comment.