115df6f1af
This is really a workaround, until Xen implements proper suspend/resume mechanism for notfying DomUs about system-wide S3 sleep. See this thread for more details: http://lists.xensource.com/archives/html/xen-devel/2010-07/msg00037.html
16 lines
242 B
Bash
Executable File
16 lines
242 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${PM_FUNCTIONS}"
|
|
|
|
sync_qubes_vms_wallclock()
|
|
{
|
|
DATE=$(date)
|
|
echo "Syncing VMs clock to: $DATE"
|
|
qvm-run --all -u root "date -s \"$DATE\""
|
|
}
|
|
|
|
case "$1" in
|
|
thaw|resume) sync_qubes_vms_wallclock ;;
|
|
*) exit 0 ;;
|
|
esac
|