daemon: start it for dom0 unconditionnaly

This commit is contained in:
Frédéric Pierret (fepitre) 2020-02-27 12:00:11 +01:00
parent 49957971ff
commit 526c862b5d
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -468,7 +468,8 @@ def main(args=None):
only_if_service_enabled = ['guivm-gui-agent', 'audiovm-audio-agent']
enabled_services = [service for service in only_if_service_enabled if
os.path.exists('/var/run/qubes-service/%s' % service)]
if not enabled_services and '--force' not in sys.argv:
if not enabled_services and '--force' not in sys.argv and \
not os.path.exists('/etc/qubes-release'):
print(parser.format_help())
return
args = parser.parse_args(args)