Use /var/tmp for the cached appliance (for FHS compliance).
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 19 Jan 2011 21:47:23 +0000 (21:47 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 19 Jan 2011 21:47:23 +0000 (21:47 +0000)
commit78f1405de05ef1f2efebafd8245658d1707e59ef
tree062f322970f73e19bfdfc65b84d7887a781e92f2
parent316ad8311a41869cf5f253225137dd03d1211ce7
Use /var/tmp for the cached appliance (for FHS compliance).

The FHS advises large files not to be stored in the root
filesystem[1], and that /var/tmp is persistent across reboots[2]
(whereas /tmp is possibly not[3]).

Therefore we should store the large cached supermin appliance in
/var/tmp instead of /tmp.  /tmp is still used for all other temporary
files and directories.

In either case you can override this by setting $TMPDIR.

[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#THEROOTFILESYSTEM
[2] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE
[3] http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES
fish/guestfish.pod
src/appliance.c
src/guestfs-internal.h
src/guestfs.pod
src/launch.c