mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-01 19:21:31 +00:00
Chroot systemctl command for disable auto-update
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 <mark.d.horn@intel.com>
This commit is contained in:
+3
-3
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user