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

Fixes QubesOS/qubes-issues#1728
This commit is contained in:
Marek Marczykowski-Górecki 2016-02-08 04:49:14 +01:00
parent 2198986d5c
commit 8c0643092b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 &
}