fix: disable stopped historical helper autostart before final VM reboot
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 21:24:35 +01:00
parent 81752a1941
commit 80906a3eb6
3 changed files with 79 additions and 1 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ def vm_state(payload):
require(not path.is_symlink() and hashlib.sha256(path.read_bytes()).hexdigest()==payload[key],'qualified current binaries')
require(hashlib.sha256(Path('/etc/systemd/system/rmm-helper-cloud.service').read_bytes()).hexdigest()==payload['general_unit_sha256'],'reviewed General D-Bus service profile with direct reboot syscalls denied')
services={}
for unit in ('rmm-agent-remote.service','rmm-helper-cloud.service','rmm-apt-helper.service'):
for unit in ('rmm-agent-remote.service','rmm-helper-cloud.service','rmm-apt-helper.service',
'rmm-agent.service','rmm-helper-dev-test.service'):
raw=subprocess.run(['systemctl','show',unit,'-p','ActiveState','-p','MainPID','-p','UnitFileState'],capture_output=True,check=True,timeout=10).stdout.decode()
services[unit]=dict(line.split('=',1) for line in raw.splitlines())
dropin=Path('/etc/systemd/system/rmm-agent-remote.service.d/30-cloud-root.conf')