From e6cc7b84d8d9e5c8409f7be67784891073b61b96 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Sun, 10 Apr 2011 15:18:17 +0200 Subject: [PATCH] qubes_setupdvm: preserve mtime of the default savefile copy in shm Otherwise, if the savefile is stale, we would use it instead of recreating. --- dom0/init.d/qubes_setupdvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/init.d/qubes_setupdvm b/dom0/init.d/qubes_setupdvm index 5ff768f2..26390536 100755 --- a/dom0/init.d/qubes_setupdvm +++ b/dom0/init.d/qubes_setupdvm @@ -30,7 +30,7 @@ start() else mkdir -m 770 /dev/shm/qubes chown root.qubes /dev/shm/qubes - cp $DEFAULT /dev/shm/qubes/current_savefile + cp -a $(readlink $DEFAULT) /dev/shm/qubes/current_savefile chown root.qubes /dev/shm/qubes/current_savefile chmod 660 /dev/shm/qubes/current_savefile ln -s /dev/shm/qubes/current_savefile /var/run/qubes/current_savefile