diff --git a/appvm/qubes_core b/appvm/qubes_core index eea88b8..bd3346a 100755 --- a/appvm/qubes_core +++ b/appvm/qubes_core @@ -31,13 +31,16 @@ start() possibly_run_save_script touch /etc/this_is_dvm dmesg -c >/dev/null -# echo 1 >/proc/sys/vm/drop_caches -# free | grep buffers/cache | -# (read a b c d ; xenstore-write device/qubes_used_mem $c) free | grep Mem: | (read a b c d ; xenstore-write device/qubes_used_mem $c) - echo "Waiting for restore" + # we're still running in DispVM template + echo "Waiting for save/restore..." + # WARNING: Nergalism! + # Apparently it has been determined that DomU kernel + # dmesg's "using vcpu" after restore while ! dmesg -c | grep "using vcpu" ; do usleep 10 ; done + # we're now after restore in a new instance of a DispVM + # ... wait until qubes_restore.c (in Dom0) recreates VM-specific keys while ! xenstore-read qubes_vm_type 2>/dev/null ; do usleep 10 done