|
|
3adda6 |
diff --git a/usr/sbin/rear b/usr/sbin/rear
|
|
|
3adda6 |
index a51f820c..e21156bf 100755
|
|
|
3adda6 |
--- a/usr/sbin/rear
|
|
|
3adda6 |
+++ b/usr/sbin/rear
|
|
|
3adda6 |
@@ -527,6 +527,10 @@ Build date: $( date -R )
|
|
|
3adda6 |
if test "$WORKFLOW" != "help" ; then
|
|
|
3adda6 |
# Create temporary work area and register removal exit task:
|
|
|
3adda6 |
BUILD_DIR="$( mktemp -d -t rear.XXXXXXXXXXXXXXX || Error "Could not create build area '$BUILD_DIR'" )"
|
|
|
3adda6 |
+ # Since 'mktemp' doesn't always return a path under /tmp, the build
|
|
|
3adda6 |
+ # directory has always to be excluded for safety
|
|
|
3adda6 |
+ BACKUP_PROG_EXCLUDE+=( "$BUILD_DIR" )
|
|
|
3adda6 |
+
|
|
|
3adda6 |
QuietAddExitTask cleanup_build_area_and_end_program
|
|
|
3adda6 |
Log "Using build area '$BUILD_DIR'"
|
|
|
3adda6 |
ROOTFS_DIR=$BUILD_DIR/rootfs
|
|
|
3adda6 |
@@ -582,3 +586,5 @@ if test "$WORKFLOW" != "help" ; then
|
|
|
3adda6 |
fi
|
|
|
3adda6 |
|
|
|
3adda6 |
exit $EXIT_CODE
|
|
|
3adda6 |
+
|
|
|
3adda6 |
+# vim: set et ts=4 sw=4:
|
|
|
3adda6 |
diff --git a/usr/share/rear/conf/default.conf b/usr/share/rear/conf/default.conf
|
|
|
3adda6 |
index ef118998..52b05eea 100644
|
|
|
3adda6 |
--- a/usr/share/rear/conf/default.conf
|
|
|
3adda6 |
+++ b/usr/share/rear/conf/default.conf
|
|
|
3adda6 |
@@ -47,7 +47,9 @@
|
|
|
3adda6 |
# is set in the environment where /usr/sbin/rear is called.
|
|
|
3adda6 |
# To have a specific working area directory prefix for Relax-and-Recover
|
|
|
3adda6 |
# specify in /etc/rear/local.conf something like
|
|
|
3adda6 |
+#
|
|
|
3adda6 |
# export TMPDIR="/prefix/for/rear/working/directory"
|
|
|
3adda6 |
+#
|
|
|
3adda6 |
# where /prefix/for/rear/working/directory must already exist.
|
|
|
3adda6 |
# This is useful for example when there is not sufficient free space
|
|
|
3adda6 |
# in /tmp or $TMPDIR for the ISO image or even the backup archive.
|