From b7eaf9a30d878d6967200993c2c4426a3b112c46 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 31 Aug 2012 00:53:50 +0200 Subject: [PATCH] dom0/core: do not use hardcoded "user" in qvm-sync-clock --- dom0/qvm-tools/qvm-sync-clock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom0/qvm-tools/qvm-sync-clock b/dom0/qvm-tools/qvm-sync-clock index 8066f09c..562cb8c3 100755 --- a/dom0/qvm-tools/qvm-sync-clock +++ b/dom0/qvm-tools/qvm-sync-clock @@ -64,14 +64,14 @@ def main(): # Ignore retcode, try even if nm-online failed - user can setup network manually # on-online has timeout 30sec by default - net_vm.run('user:nm-online -x', verbose=verbose, wait=True, ignore_stderr=True) + net_vm.run('DEFAULT:nm-online -x', verbose=verbose, wait=True, ignore_stderr=True) # Sync clock if clock_vm.run('root:QUBESRPC qubes.SyncNtpClock dom0', verbose=verbose, wait=True, ignore_stderr=True) != 0: print >> sys.stderr, 'Time sync failed, aborting!' sys.exit(1) - p = clock_vm.run('user:date -u', verbose=verbose, passio_popen=True, ignore_stderr=True) + p = clock_vm.run('DEFAULT:date -u', verbose=verbose, passio_popen=True, ignore_stderr=True) date_out = p.stdout.read(100) date_out = date_out.strip() if not re.match(r'^[A-Za-z]* [A-Za-z]* [ 0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [A-Z]* [0-9][0-9][0-9][0-9]$', date_out):