[rear-devel] [rear/rear] 538ba8: Set TMPDIR to /var/tmp if unset and export it

Johannes Meixner noreply at github.com
Fri Aug 6 07:22:02 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 538ba8a9acbef1d2ea972865e0afb3c962a79299
      https://github.com/rear/rear/commit/538ba8a9acbef1d2ea972865e0afb3c962a79299
  Author: Pavel Cahyna <pcahyna at redhat.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M usr/share/rear/conf/default.conf

  Log Message:
  -----------
  Set TMPDIR to /var/tmp if unset and export it

The default path ( /tmp ) is not suited for ReaR, because ReaR needs
lots of space. file-hierarchy(7) recommends to use /var/tmp as default
for such programs.

If the user sets TMPDIR explicitly, it still takes precedence.

The variable is exported because it influences the behavior of utilities
that ReaR invokes, in particular mktemp(1).

See the discussion in issue #2654 .


  Commit: 2721c2743ea959631be0d30eac92984a708c1e66
      https://github.com/rear/rear/commit/2721c2743ea959631be0d30eac92984a708c1e66
  Author: Pavel Cahyna <pcahyna at redhat.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    R usr/share/rear/rescue/GNU/Linux/600_unset_TMPDIR_in_rescue_conf.sh

  Log Message:
  -----------
  Remove code that unset TMPDIR in rescue.conf

This code probably has not worked since commit 0022063 (PR #2633),
because rescue.conf is sourced only when the build area has been
already created by invoking mktemp. It is also unneeded, because since
that commit, setting TMPDIR in local.conf (which was the initial concern
that motivated this code) does not work anyway, as discussed in #2654.


  Commit: 6589c8d201117e9ecaaf6450627493f7c4176dbd
      https://github.com/rear/rear/commit/6589c8d201117e9ecaaf6450627493f7c4176dbd
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

  Changed paths:
    M usr/share/rear/conf/default.conf
    R usr/share/rear/rescue/GNU/Linux/600_unset_TMPDIR_in_rescue_conf.sh

  Log Message:
  -----------
  Merge pull request #2664 from pcahyna/tmpdir-var-tmp

ReaR's default TMPDIR is now /var/tmp (it was /tmp before)
i.e. ReaR's default working area is now /var/tmp/rear.XXXXX
ReaR needs lots of space (from 300MB up to more than 1GB)
to build the ReaR rescue/recovery system e.g. as ISO image
and even much more space to also store the backup archive
e.g. when the backup should be included in the ISO image.
The system's default temporary directory /tmp is no longer suited
as default temporary directory for ReaR because nowadays /tmp
is often a "tmpfs" that is in RAM so /tmp has RAM/swap limitations.
file-hierarchy(7) recommends to use /var/tmp for such cases.
If the user sets TMPDIR explicitly, it still takes precedence.


Compare: https://github.com/rear/rear/compare/69d7cf351de6...6589c8d20111


More information about the rear-devel mailing list