Use qubes.SetDateTime instead of direct call in post-suspend time sync

Fixes QubesOS/qubes-issues#1728

(cherry picked from commit 8c0643092b)
release3.0
Marek Marczykowski-Górecki 8 years ago
parent af1a352343
commit ab5e1182c5
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -6,7 +6,7 @@ sync_qubes_vms_wallclock()
DATE=$(date)
echo
echo "Syncing VMs clock to: $DATE"
qvm-run --all -u root "date -s \"$DATE\""
qvm-run --all -u root --localcmd="date -u -Iseconds" "qubes.SetDateTime dom0"
# Then try to sync from the network
/usr/bin/qvm-sync-clock &
}

Loading…
Cancel
Save