qubes_setupdvm: preserve mtime of the default savefile copy in shm

Otherwise, if the savefile is stale, we would use it instead of
recreating.
This commit is contained in:
Rafal Wojtczuk 2011-04-10 15:18:17 +02:00
父節點 6e500fc733
當前提交 e6cc7b84d8

查看文件

@ -30,7 +30,7 @@ start()
else else
mkdir -m 770 /dev/shm/qubes mkdir -m 770 /dev/shm/qubes
chown root.qubes /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 chown root.qubes /dev/shm/qubes/current_savefile
chmod 660 /dev/shm/qubes/current_savefile chmod 660 /dev/shm/qubes/current_savefile
ln -s /dev/shm/qubes/current_savefile /var/run/qubes/current_savefile ln -s /dev/shm/qubes/current_savefile /var/run/qubes/current_savefile