Skip to content

Commit

Permalink
Chroot systemctl command for disable auto-update
Browse files Browse the repository at this point in the history
Fixes: 255

We see build problems due to new releases of systemd, so
only use it in chroot versus the --root option.

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Mar 7, 2019
1 parent f424bdb commit 3ff5c00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swupd/swupd.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ func (s *SoftwareUpdater) Update() error {
// See Issue https://github.com/clearlinux/swupd-client/issues/527
func (s *SoftwareUpdater) DisableUpdate() error {
args := []string{
filepath.Join(s.rootDir, "/usr/bin/systemctl"),
fmt.Sprintf("--root=%s", s.rootDir),
"chroot",
s.rootDir,
"systemctl",
"mask",
"--now",
"swupd-update.service",
"swupd-update.timer",
}
Expand Down

0 comments on commit 3ff5c00

Please sign in to comment.