dom0: use RPC service to sync clock via NTP (#603)
This commit is contained in:
parent
f53ebfc3cd
commit
89aaa60753
@ -67,7 +67,7 @@ def main():
|
|||||||
net_vm.run('user:nm-online -x', verbose=verbose, wait=True)
|
net_vm.run('user:nm-online -x', verbose=verbose, wait=True)
|
||||||
|
|
||||||
# Sync clock
|
# Sync clock
|
||||||
if clock_vm.run('root:/etc/init.d/ntpdate restart', verbose=verbose, wait=True) != 0:
|
if clock_vm.run('root:QUBESRPC qubes.SyncNtpClock dom0', verbose=verbose, wait=True) != 0:
|
||||||
print >> sys.stderr, 'Time sync failed, aborting!'
|
print >> sys.stderr, 'Time sync failed, aborting!'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user