Skip to content

Commit f1e19e9

Browse files
committed
merge branch 'pr-1579'
Disable systemd in static build LGTMs: @crosbymichael @cyphar Closes #1579
2 parents f756d90 + e9944d0 commit f1e19e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libcontainer/cgroups/systemd/apply_nosystemd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !linux
1+
// +build !linux static_build
22

33
package systemd
44

@@ -43,7 +43,7 @@ func (m *Manager) GetStats() (*cgroups.Stats, error) {
4343
}
4444

4545
func (m *Manager) Set(container *configs.Config) error {
46-
return nil, fmt.Errorf("Systemd not supported")
46+
return fmt.Errorf("Systemd not supported")
4747
}
4848

4949
func (m *Manager) Freeze(state configs.FreezerState) error {

libcontainer/cgroups/systemd/apply_systemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
// +build linux,!static_build
22

33
package systemd
44

0 commit comments

Comments
 (0)