From 2483409f53d22cbc8be55ccec4abad0b4a253e8b Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 1 Feb 2012 18:22:44 +0100 Subject: [PATCH] dom0/pm-utils: sync clock based on dom0, and then try to sync from network (#435) --- dom0/pm-utils/01qubes-sync-vms-clock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dom0/pm-utils/01qubes-sync-vms-clock b/dom0/pm-utils/01qubes-sync-vms-clock index 6fe26dbf..5d363387 100755 --- a/dom0/pm-utils/01qubes-sync-vms-clock +++ b/dom0/pm-utils/01qubes-sync-vms-clock @@ -4,16 +4,16 @@ sync_qubes_vms_wallclock() { -# Try to sync clock from the network -/usr/bin/qvm-sync-clock && exit 0 -# If failed - fallback to sync based on dom0 clock +# Sync all VMs based on dom0 clock DATE=$(date) echo echo "Syncing VMs clock to: $DATE" qvm-run --all --exclude=`qvm-get-clockvm` -u root "date -s \"$DATE\"" +# Then try to sync from the network +/usr/bin/qvm-sync-clock & } case "$1" in - thaw|resume) sync_qubes_vms_wallclock & ;; + thaw|resume) sync_qubes_vms_wallclock ;; *) exit 0 ;; esac